Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c58ca60

Browse files
authored
Merge pull request #16334 from anntzer/depprop
Fix doc regarding deprecation of properties.
2 parents 4f77378 + 5c9d171 commit c58ca60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/cbook/deprecation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ def deprecated(since, *, message='', name='', alternative='', pending=False,
115115
Decorator to mark a function, a class, or a property as deprecated.
116116
117117
When deprecating a classmethod, a staticmethod, or a property, the
118-
``@deprecated`` decorator should go *under* the ``@classmethod``, etc.
119-
decorator (i.e., `deprecated` should directly decorate the underlying
120-
callable).
118+
``@deprecated`` decorator should go *under* ``@classmethod`` and
119+
``@staticmethod`` (i.e., `deprecated` should directly decorate the
120+
underlying callable), but *over* ``@property``.
121121
122122
Parameters
123123
----------

0 commit comments

Comments
 (0)