-
Notifications
You must be signed in to change notification settings - Fork 40
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
directly-instantiated types are unsupported in mypy-zope #75
Comments
I've drafted a fix, but it unfortunately doesn't work as intended. It works on Python 3, but on Python 2, the test suite fails with 23 errors similar to:
|
I was able to work around the issue by deriving the |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Shoobx/mypy-zope#21, I learned that mypy-zope doesn't support direct invocation of an InterfaceClass such as seen here in foolscap. With Shoobx/mypy-zope#24, however, it will support the more typical metaclass syntax. Perhaps the best approach here may be to use the appropriate metaclass instantiation, something like
(and an equivalent for Python 2).
The text was updated successfully, but these errors were encountered: