https://github.com/python/cpython/commit/290330714b0af5b46b1df6cff08410bd2f73607b
commit: 290330714b0af5b46b1df6cff08410bd2f73607b
branch: main
author: Jelle Zijlstra <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2024-03-12T15:17:53-07:00
summary:
gh-89547: typing.rst: Add note about change in behavior with ClassVar/Final
(#116686)
files:
M Doc/library/typing.rst
diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index 3db5f06803607f..713ad1c83546d1 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -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.
@@ -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.
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]