]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46553: allow bare typing.ClassVar annotations (#30983)
authorGregory Beauregard <greg@greg.red>
Fri, 28 Jan 2022 16:58:39 +0000 (08:58 -0800)
committerGitHub <noreply@github.com>
Fri, 28 Jan 2022 16:58:39 +0000 (08:58 -0800)
commit5445e173e76ec792358082caf660fbdc846c64b2
tree3def2baf86fec5a64b0f5e234c94da3b2e1afe73
parent45faf151c693b6f13f78926761caea6df7242024
bpo-46553: allow bare typing.ClassVar annotations (#30983)

These are used in the wild and covered by dataclasses unit tests.
Several static type checkers support this pattern.
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2022-01-28-08-47-53.bpo-46553.f7Uc96.rst [new file with mode: 0644]