]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
typing docs: Move some classes out of the "Generics" section (#104707)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Sun, 21 May 2023 13:00:50 +0000 (06:00 -0700)
committerGitHub <noreply@github.com>
Sun, 21 May 2023 13:00:50 +0000 (06:00 -0700)
commitab71acd67b5b09926498b8c7f855bdb28ac0ec2f
tree9c99a4ec345c0cbd2bf0a9ab270aea1742c87bad
parentb9fcfa60244da85d8847a05e8d5e75d0a6694f90
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.
Doc/library/typing.rst