8000 review comments/clarifications · matplotlib/matplotlib@acb4923 · GitHub
[go: up one dir, main page]

Skip to content

Commit acb4923

Browse files
committed
review comments/clarifications
1 parent 74c208a commit acb4923

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/devel/contribute.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ Introducing
345345
- Use ``_api.warn_deprecated()`` for general deprecation warnings
346346
- Use the decorator ``@_api.deprecated`` to deprecate classes, functions,
347347
methods, or properties
348-
- Use the decorator ``@_api.deprecate_privatize_attribute`` to deprecate
348+
- Use ``@_api.deprecate_privatize_attribute`` to annotate deprecation of
349349
attributes while keeping the internal private version.
350350
- To warn on changes of the function signature, use the decorators
351351
``@_api.delete_parameter``, ``@_api.rename_parameter``, and
@@ -370,7 +370,7 @@ Introducing
370370
``param: <type> = ...``). Even so, the decorator changes the default value to a
371371
sentinel value which should not be included in the type stub. Thus, Mypy Stubtest
372372
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
374374
version number.
375375

376376
Expiring
@@ -389,11 +389,11 @@ Expiring
389389
- Items marked with ``@_api.deprecated`` or ``@_api.deprecate_privatize_attribute``
390390
are to be removed on expiry.
391391
- 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.
393393
- Items decorated with ``@_api.delete_parameter`` will need to be updated to the
394394
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
397397
deprecations should be double checked, as only ``delete_parameter`` should normally
398398
require that mechanism for deprecation. For removed items that were not in the stub
399399
file, only deleting from the allowlist is required.

0 commit comments

Comments
 (0)
0