Skip to content

Commit 2903307

Browse files
gh-89547: typing.rst: Add note about change in behavior with ClassVar/Final (#116686)
1 parent a254807 commit 2903307

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/library/typing.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,6 +1233,10 @@ These can be used as types in annotations. They all support subscription using
12331233

12341234
.. versionadded:: 3.5.3
12351235

1236+
.. versionchanged:: 3.13
1237+
1238+
:data:`ClassVar` can now be nested in :data:`Final` and vice versa.
1239+
12361240
.. data:: Final
12371241

12381242
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
12561260

12571261
.. versionadded:: 3.8
12581262

1263+
.. versionchanged:: 3.13
1264+
1265+
:data:`Final` can now be nested in :data:`ClassVar` and vice versa.
1266+
12591267
.. data:: Required
12601268

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

0 commit comments

Comments
 (0)