-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix metaclass conflict #90
Conversation
@euresti please take a look. I had to remove this line to fix errors that started to appear after upgrade to mypy-1.0. How important do you think this |
Hi. If you remove this line you bring back the caching issue in #86. Basically in the mypy_cache the typeinfo has the metaclass_type but in the |
Can you double-check if that is still the case with mypy-1.0? We don't seem to have a regression test for this. |
Yeah. Let me double check. Writing a caching regression tests is pretty hard. |
Yeah the caching bug is still there:
|
Hm, interesting. So on mypy-1.0, instead of hiding the error, #88 actually exposes it with the cold cache? |
@euresti can you share those |
They are in #86 |
So a horrible thing we can do is add a |
|
True. This failure doesn't have an error code either, it just says misc. There's another thing that can be done with is to add But if you subclass the implementer you still have issues. |
858bf45
to
d06e2ac
Compare
@euresti I came up with this much simpler and less hacky implementation that seems to fix the caching issue and this new error as well. The mypy-zope tests pass, but to be sure, can you test it on your real codebase? Also, I removed |
Wow. That worked! I did wonder why we were creating a faketi in the first place. |
d06e2ac
to
a9954b7
Compare
Released in mypy-zope-0.9.0 |
Thank you both for tackling the fallout from #89! |
This fixes the regression when #88 combined with #89: mypy-1.0 started producing the error: