-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
Docs: improve covariance generic typing examples #130302
base: main
Are you sure you want to change the base?
Conversation
skip issue |
The original documentation did not include a declaration for |
I don't think we need this many additional examples. Let's try to keep the examples short and focused. It may be enough to just add a |
Let me argue, then this section does not give the reader information about how typing with inheritance will work in this case. If it’s ok, then fine, I’ll remove the unnecessary stuff. |
📚 Documentation preview 📚: https://cpython-previews--130302.org.readthedocs.build/