-
-
Couldn't load subscription status.
- Fork 3k
Closed
Labels
Description
Code:
class Visitor:
def __init__(self, a: int):
pass
Error:
x.py: In member "__init__" of class "Visitor":
x.py, line 2: Cannot define return type for "__init__"
The return type is Any (implicitly), and Any should be a valid return type for __init__.
This was reported by Guido.
boompig, csernazs, smheidrich, Cologler, yuyang-huang and 3 more