-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Document new type parameter syntax (PEP 695) #17810
Comments
This might be overcomplicating things, but Cython has a similar need to display two code styles, which they handle via the |
An interesting idea. I don't have a strong opinion -- we'd need to experiment with it before making a decision. I'm not going to switch to tabs at the moment, but we can consider it in the future. |
Provide examples using both syntax variants, and give both of the syntax variants similar prominence. It's likely that both syntax variants will continue to be widely used for a long time. Also adjust terminology (e.g. use 'type parameter' / 'type argument' more consistently), since otherwise some descriptions would be unclear. I didn't update examples outside the generics chapter. I'll do this in a follow-up PR. Work on #17810. --------- Co-authored-by: Jelle Zijlstra <[email protected]> Co-authored-by: Brian Schubert <[email protected]>
Opened #18264 so we can decide if it's helpful. |
#15238 is about overall support for PEP 695.
The text was updated successfully, but these errors were encountered: