We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When upgrading to the latest mypy I started getting a weird new error. Here's a simplified example:
class X: def __new__(cls) -> "X": return super(type, cls).__new__(cls) # error: Argument 2 for "super" not an instance of argument 1
However:
>>> isinstance(X, type) True
My settings: mypy 0.730
[mypy] python_version=3.6 incremental=True ignore_missing_imports=True follow_imports=normal warn_redundant_casts=True warn_unused_ignores=True strict_optional=True no_implicit_optional=True disallow_untyped_defs=True disallow_any_generics=True
(Note: I'm using super to skip an inherited __new__ when I create the object.)
super
__new__
The text was updated successfully, but these errors were encountered:
Possible duplicate of #9282
Sorry, something went wrong.
No branches or pull requests
When upgrading to the latest mypy I started getting a weird new error. Here's a simplified example:
However:
My settings: mypy 0.730
(Note: I'm using
super
to skip an inherited__new__
when I create the object.)The text was updated successfully, but these errors were encountered: