diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2022-05-02 19:21:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 19:21:59 (GMT) |
commit | ff88f7e007deb7a9f7539938dcf6f4adbfebf442 (patch) | |
tree | f6db3ea58a6b68abaacb2311461208849364b0e9 /Doc/library/stdtypes.rst | |
parent | 56f98440148e4257aa5b27150ce2269c98cea0ea (diff) | |
download | cpython-ff88f7e007deb7a9f7539938dcf6f4adbfebf442.zip cpython-ff88f7e007deb7a9f7539938dcf6f4adbfebf442.tar.gz cpython-ff88f7e007deb7a9f7539938dcf6f4adbfebf442.tar.bz2 |
gh-87390: Add __unpacked__ attribute to types.GenericAlias (#92059)
Diffstat (limited to 'Doc/library/stdtypes.rst')
-rw-r--r-- | Doc/library/stdtypes.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 764d83a..4444740 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -5055,6 +5055,15 @@ All parameterized generics implement special read-only attributes. have correct ``__parameters__`` after substitution because :class:`typing.ParamSpec` is intended primarily for static type checking. + +.. attribute:: genericalias.__unpacked__ + + A boolean that is true if the alias has been unpacked using the + ``*`` operator (see :data:`~typing.TypeVarTuple`). + + .. versionadded:: 3.11 + + .. seealso:: :pep:`484` - Type Hints |