-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
"TypeError: interpreted classes cannot inherit from compiled" after get_customize_class_mro_hook #6706
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
Comments
Could you give the full code for the plugin, with imports? |
(Nevermind, I managed to reproduce it.) |
The error message here is a bad one from mypyc. The actual problem here is that we are trying to instantiate Expression, which is a trait, which is not really supported. |
I believe that this broke / is blocking the zope.interface plugin (see also #3960) Shoobx/mypy-zope#7 - should it be treated as a regression? |
... I tracked this down and then forgot to fix it. I'll fix it now. |
) The semanal code that invoked it created an `Expression` directly, which mypyc barfs on because it is a trait. Fixes #6706.
Thanks so much, @msullivan ! |
Uh oh!
There was an error while loading. Please reload this page.
When using plugin, that provides
get_customize_class_mro_hook
, mypy errors out withTypeError: interpreted classes cannot inherit from compiled
traceback. Tested on mypy-0.701 and python-3.6.Consider this minimal plugin:
When mypy is run with this plugin enabled on simple python file, e.g.
Mypy will error out with this traceback:
The text was updated successfully, but these errors were encountered: