You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in pdoc it's just treated like a normal decorator and is quite easy to miss:
Proposal
display the deprecated message as a warning, something like this:
Additional context
the decorator isn't coming to python until 3.13, but it can currently be used older python versions by importing it from typing_extensions. vscode already supports it too
The text was updated successfully, but these errors were encountered:
I like the idea, but implementation-wise I don't particularly like decorators having a magic effect on docstrings. One viable workaround here could be to add the decorator name to the CSS class and then apply a CSS filter like so:
Problem Description
python now has a
@deprecated
decorator: https://peps.python.org/pep-0702/in pdoc it's just treated like a normal decorator and is quite easy to miss:
Proposal
display the deprecated message as a warning, something like this:
Additional context
the decorator isn't coming to python until 3.13, but it can currently be used older python versions by importing it from
typing_extensions
. vscode already supports it tooThe text was updated successfully, but these errors were encountered: