mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-91764: Mark version typing.Unpack and LiteralString were added in (#91817)
Closes GH-91764
This commit is contained in:
parent
1218061609
commit
9fe82d0b70
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue