gh-91764: Mark version typing.Unpack and LiteralString were added in (#91817)

Closes GH-91764
This commit is contained in:
Dominic Davis-Foster 2022-04-22 15:28:39 +01:00 committed by GitHub
parent 1218061609
commit 9fe82d0b70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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