-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
There are some types that need to reference themselves. For instance:
class X():
def some_func() -> X:
...
However, this is NOT valid Python 3 (X has not yet been fully declared at this point). Mypy should have a way for types to self-reference themselves (maybe a ThisType type?).
omry, brussee and serv-inctalwrii
Metadata
Metadata
Assignees
Labels
No labels