-
Notifications
You must be signed in to change notification settings - Fork 237
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
Describe generic classes as base classes #41
Comments
Yes, the allowed forms for base classes and the idioms to use for various On Wed, Jan 14, 2015 at 11:09 PM, Jukka Lehtosalo notifications@github.com
--Guido van Rossum (python.org/~guido) |
See also https://github.com/JukkaL/typing/issues/36 about |
Currently this is not valid (due to Python semantics):
This is okay, however:
Maybe we should just replace |
So, what shall we do? If at all possible I'd like to only have |
I updated mypy and typing to only have |
Added section 'Arbitrary generic types as base classes' to the PEP. Not closing this issue this yet until somebody has reviewed it. |
Everything looks good to me, except for #85. |
The PEP should probably mention what happens if a generic class is used as a base class.
Examples to consider:
The text was updated successfully, but these errors were encountered: