Skip to content

Calling pep702 deprecated directly #7456

Answered by erictraut
jenshnielsen asked this question in Q&A
Discussion options

You must be logged in to vote

The current behavior is intended. PEP 702 indicates that deprecated is intended to be used as a decorator. If you use it in other ways (not as a decorator), it may work at runtime, but type checkers and language servers will not honor it.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jenshnielsen
Comment options

@astafan8
Comment options

@erictraut
Comment options

Answer selected by jenshnielsen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants