-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
MyPy does not consider classes instances of their metaclass #1267
Comments
This is problematic with Enums, because enums have the |
Another curious case where this is problematic: ctypes defines classes (e.g. |
This issue seems to be fixed by #2475 (but only with python 3 syntax, |
Updated priority since it looks like this should be easier to fix now that #2475 has landed. |
Looks like this is now fixed (in master). I get the last two errors (which seem expected) but this line is now error-free in the example: accepts_an_asdf_class(AsdfConcrete1) |
Cool! Yes, the latter two are counterexamples.
…On Tue, Feb 7, 2017, 9:57 AM Guido van Rossum ***@***.***> wrote:
Looks like this is now fixed (in master). I get the last two errors (which
seem expected) but this line is now error-free in the example:
accepts_an_asdf_class(AsdfConcrete1)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1267 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAjT4s7Z2hZmXQLbMkdIMeuyMtXlf8q-ks5raLCagaJpZM4HoAV1>
.
|
Playing around with a toy situation as below:
I get back
(This is super low-priority in my opinion.)
The text was updated successfully, but these errors were encountered: