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
Repro:
class M(type): def __init__(cls, name, base, attrs) -> None: type.__init__(cls, name, base, attrs) # E: Argument 1 to "__init__" of "type" has incompatible type "M"; expected "type"
This appears to be a regression due to #2825 "Treat type equivalent to Type[Any]; fixes #2655" (@ilevkivskyi, reviewed by @ddfisher).
The text was updated successfully, but these errors were encountered:
Yes, I remember I updated my PR after #2837 was merged, but I missed this corner case, sorry.
Here is a fix #3012
Sorry, something went wrong.
Fix a regression in Type[Any] (#3012)
aec4595
Fixes #3010 This just takes care of a corner case: every metaclass is a subtype of Type[Any].
No branches or pull requests
Repro:
This appears to be a regression due to #2825 "Treat type equivalent to Type[Any]; fixes #2655" (@ilevkivskyi, reviewed by @ddfisher).
The text was updated successfully, but these errors were encountered: