Replies: 2 comments 1 reply
-
I think your question is based on faulty assumptions. Refer to this explanation for details. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@erictraut I made a proposal for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/python/typeshed/blob/f28cb8b8562ccc382d018129ba4886f241c6db9c/stdlib/builtins.pyi#L146-L160
Pyright special cases (hard codes)
classmethod
, and I'm pretty sure other type checkers do too. By doing so, they avoid having to parse the above type annotations and work with descriptors correctly.3 votes ·
Beta Was this translation helpful? Give feedback.
All reactions