SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72156 0 81 Python

typing docs: Move some classes out of the "Generics" section (#104707)

- AnyStr can be used in type annotations, contrary to the section header
- Unpack can also be used in annotations, and its use is not restricted
  to generics. It makes more sense with other building blocks like Required.
- Protocol is not necessarily generic.

Also fix the indentation for two notes associated with Concatenate.

Split off from #104642, but I think this change is independently an
improvement.
J
Jelle Zijlstra committed
ab71acd67b5b09926498b8c7f855bdb28ac0ec2f
Parent: b9fcfa6
Committed by GitHub <noreply@github.com> on 5/21/2023, 1:00:50 PM