mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-89547: typing.rst: Add note about change in behavior with ClassVar/Final (#116686)
This commit is contained in:
parent
a254807761
commit
290330714b
1 changed files with 8 additions and 0 deletions
|
@ -1233,6 +1233,10 @@ These can be used as types in annotations. They all support subscription using
|
||||||
|
|
||||||
.. versionadded:: 3.5.3
|
.. versionadded:: 3.5.3
|
||||||
|
|
||||||
|
.. versionchanged:: 3.13
|
||||||
|
|
||||||
|
:data:`ClassVar` can now be nested in :data:`Final` and vice versa.
|
||||||
|
|
||||||
.. data:: Final
|
.. data:: Final
|
||||||
|
|
||||||
Special typing construct to indicate final names to type checkers.
|
Special typing construct to indicate final names to type checkers.
|
||||||
|
@ -1256,6 +1260,10 @@ These can be used as types in annotations. They all support subscription using
|
||||||
|
|
||||||
.. versionadded:: 3.8
|
.. versionadded:: 3.8
|
||||||
|
|
||||||
|
.. versionchanged:: 3.13
|
||||||
|
|
||||||
|
:data:`Final` can now be nested in :data:`ClassVar` and vice versa.
|
||||||
|
|
||||||
.. data:: Required
|
.. data:: Required
|
||||||
|
|
||||||
Special typing construct to mark a :class:`TypedDict` key as required.
|
Special typing construct to mark a :class:`TypedDict` key as required.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue