Skip to content

Commit 9fe82d0

Browse files
authored
gh-91764: Mark version typing.Unpack and LiteralString were added in (#91817)
Closes GH-91764
1 parent 1218061 commit 9fe82d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/typing.rst

+4
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ These can be used as types in annotations and do not support ``[]``.
614614
that generate type checker errors could be vulnerable to an SQL
615615
injection attack.
616616

617+
.. versionadded:: 3.11
618+
617619
.. data:: Never
618620

619621
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
13831385
tup: tuple[*Ts] # Syntax error on Python <= 3.10!
13841386
tup: tuple[Unpack[Ts]] # Semantically equivalent, and backwards-compatible
13851387

1388+
.. versionadded:: 3.11
1389+
13861390
.. class:: ParamSpec(name, *, bound=None, covariant=False, contravariant=False)
13871391

13881392
Parameter specification variable. A specialized version of

0 commit comments

Comments
 (0)