]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-89547: typing.rst: Add note about change in behavior with ClassVar/Final (#116686)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Tue, 12 Mar 2024 22:17:53 +0000 (15:17 -0700)
committerGitHub <noreply@github.com>
Tue, 12 Mar 2024 22:17:53 +0000 (15:17 -0700)
Doc/library/typing.rst

index 3db5f06803607fe1312db12f0c6793605d0e8916..713ad1c83546d1603be436f8724518508099b230 100644 (file)
@@ -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.