Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-89547: typing.rst: Add note about change in behavior with ClassVar/Final #116686

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading