]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-91764: Mark version typing.Unpack and LiteralString were added in (#91817)
authorDominic Davis-Foster <dominic@davis-foster.co.uk>
Fri, 22 Apr 2022 14:28:39 +0000 (15:28 +0100)
committerGitHub <noreply@github.com>
Fri, 22 Apr 2022 14:28:39 +0000 (07:28 -0700)
Closes GH-91764

Doc/library/typing.rst

index 6b2a0934171a294e25c8f470f586cfabac01885d..2f62193e65c293659a29a991086c7df22fb3b1d9 100644 (file)
@@ -614,6 +614,8 @@ These can be used as types in annotations and do not support ``[]``.
    that generate type checker errors could be vulnerable to an SQL
    injection attack.
 
+   .. versionadded:: 3.11
+
 .. data:: Never
 
    The `bottom type <https://en.wikipedia.org/wiki/Bottom_type>`_,
@@ -1383,6 +1385,8 @@ These are not used in annotations. They are building blocks for creating generic
         tup: tuple[*Ts]         # Syntax error on Python <= 3.10!
         tup: tuple[Unpack[Ts]]  # Semantically equivalent, and backwards-compatible
 
+   .. versionadded:: 3.11
+
 .. class:: ParamSpec(name, *, bound=None, covariant=False, contravariant=False)
 
    Parameter specification variable.  A specialized version of