-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Reporting python/mypy#4991 here.
This code to make a subclass of tuple does not pass the test.
class A(tuple):
def __new__(cls, fields):
return super(A, cls).__new__(cls, tuple(fields))
With those settings:
python_version=3.5
warn_unused_ignores=True
warn_redundant_casts=True
strict_optional=True
scripts_are_modules=True
check_untyped_defs=True
Using mypy 0.590
And it results in
/tmp/test.py:3: error: Too many arguments for "__new__" of "object"
Metadata
Metadata
Assignees
Labels
No labels