Replies: 1 comment
-
At the moment, |
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
-
When annotating a method using _typeshed.Self as the parameter to a Generic raises an error when returning and creating the object.
Mypy and pyright both fail to type check this but have the correct revealed types. I understand that the easy way to make this type check is to use
(self: B) -> Foo[B]
but I'm curious as to whether or not this is worth supporting in type checkers.Beta Was this translation helpful? Give feedback.
All reactions