]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] typing docs: Move some classes out of the "Generics" section (GH-104707) ...
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Sun, 21 May 2023 13:31:26 +0000 (06:31 -0700)
committerGitHub <noreply@github.com>
Sun, 21 May 2023 13:31:26 +0000 (14:31 +0100)
commitabb32de8c4e9541fbd0c6b14dc937193078e6955
treeb0cbf1cc90b801c508da1ff6d4bfb078fc01c7a9
parentdc0c41b2e5ec64854caa9055f2c7388e22fa4bf8
[3.11] typing docs: Move some classes out of the "Generics" section (GH-104707) (#104721)

- 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.

(cherry picked from commit ab71acd67b5b09926498b8c7f855bdb28ac0ec2f)

---------

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Doc/library/typing.rst