-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
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
stubtest: False-positive errors for type[T]
attributes with non-type
metaclasses
#13316
Comments
The issue seems to be that the call to Line 887 in d27bff6
|
type[T]
attributes with nonstandard metaclassestype[T]
attributes with non-type
metaclasses
So the question |
Bug Report
Given a stub like so:
And a runtime like so:
Stubtest will issue the following complaint:
This error can be reproduced with any custom metaclass; it's not just
ABCMeta
that triggers the bug:To Reproduce
pytest ./mypy/test/teststubtest.py
Expected Behavior
No error should be emitted.
Actual Behavior
An error was emitted.
Cc. @hauntsaninja
The text was updated successfully, but these errors were encountered: