@@ -345,7 +345,7 @@ Introducing
345
345
- Use ``_api.warn_deprecated() `` for general deprecation warnings
346
346
- Use the decorator ``@_api.deprecated `` to deprecate classes, functions,
347
347
methods, or properties
348
- - Use the decorator ``@_api.deprecate_privatize_attribute `` to deprecate
348
+ - Use ``@_api.deprecate_privatize_attribute `` to annotate deprecation of
349
349
attributes while keeping the internal private version.
350
350
- To warn on changes of the function signature, use the decorators
351
351
``@_api.delete_parameter ``, ``@_api.rename_parameter ``, and
@@ -370,7 +370,7 @@ Introducing
370
370
``param: <type> = ... ``). Even so, the decorator changes the default value to a
371
371
sentinel value which should not be included in the type stub. Thus, Mypy Stubtest
372
372
needs to be informed of the inconsistency by placing the method into
373
- `` ci/mypy-stubtest-allowlist.txt ` ` under a heading indicating the deprecation
373
+ :file: ` ci/mypy-stubtest-allowlist.txt ` under a heading indicating the deprecation
374
374
version number.
375
375
376
376
Expiring
@@ -389,11 +389,11 @@ Expiring
389
389
- Items marked with ``@_api.deprecated `` or ``@_api.deprecate_privatize_attribute ``
390
390
are to be removed on expiry.
391
391
- Items decorated with ``@_api.rename_parameter `` or ``@_api.make_keyword_only ``
392
- will have been updated at introduction.
392
+ will have been updated at introduction, and require no change now .
393
393
- Items decorated with ``@_api.delete_parameter `` will need to be updated to the
394
394
final signature, in the same way as the ``.py `` file signature is updated.
395
- The entry in `` ci/mypy-stubtest-allowlist.txt ` ` should be removed.
396
- - Any other entries in `` ci/mypy-stubtest-allowlist.txt `` under a versions
395
+ The entry in :file: ` ci/mypy-stubtest-allowlist.txt ` should be removed.
396
+ - Any other entries in :file: ` ci/mypy-stubtest-allowlist.txt ` under a version's
397
397
deprecations should be double checked, as only ``delete_parameter `` should normally
398
398
require that mechanism for deprecation. For removed items that were not in the stub
399
399
file, only deleting from the allowlist is required.
0 commit comments