You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mypy complains about this code, even though it's okay:
class A:
def __new__(cls, x: int) -> 'A':
return object.__new__(cls)
class B(A):
def __new__(cls, x: str) -> 'B':
return super().__new__(cls, int(x)) # Too many arguments for "__new__" of "A"
print(B('3'))