Skip to content

Commit

Permalink
pythongh-89547: typing.rst: Add note about change in behavior with Cl…
Browse files Browse the repository at this point in the history
…assVar/Final (python#116686)
  • Loading branch information
JelleZijlstra authored and adorilson committed Mar 25, 2024
1 parent 8b64159 commit 6994ca4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Doc/library/typing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,10 @@ These can be used as types in annotations. They all support subscription using

.. versionadded:: 3.5.3

.. versionchanged:: 3.13

:data:`ClassVar` can now be nested in :data:`Final` and vice versa.

.. data:: Final

Special typing construct to indicate final names to type checkers.
Expand All @@ -1256,6 +1260,10 @@ These can be used as types in annotations. They all support subscription using

.. versionadded:: 3.8

.. versionchanged:: 3.13

:data:`Final` can now be nested in :data:`ClassVar` and vice versa.

.. data:: Required

Special typing construct to mark a :class:`TypedDict` key as required.
Expand Down

0 comments on commit 6994ca4

Please sign in to comment.