Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update to more relevant PEP
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
George-Ogden and AlexWaygood committed Apr 19, 2026
commit ebbdfbb81f73baeccab8a852d8b0039c8a62e0ba
2 changes: 1 addition & 1 deletion docs/spec/generics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ and a type checker should flag this as an error.
AllTheDefaults[int, complex, str, int, bool]
) # All valid

With the new Python 3.13 syntax for generics (introduced by :pep:`695`), this can
With the new Python 3.13 syntax for generics (introduced by :pep:`696`), this can
be enforced at compile time::

type Alias[DefaultT = int, T] = tuple[DefaultT, T] # SyntaxError: non-default TypeVars cannot follow ones with defaults
Expand Down