Skip to content

Commit

Permalink
[PEP 695] Document Python 3.12 type parameter syntax (#17816)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
3 people authored Sep 25, 2024
1 parent 5c5e051 commit 58825f7
Showing 1 changed file with 619 additions and 166 deletions.
Loading

0 comments on commit 58825f7

Please sign in to comment.