summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorGregory Beauregard <greg@greg.red>2022-01-28 16:58:39 (GMT)
committerGitHub <noreply@github.com>2022-01-28 16:58:39 (GMT)
commit5445e173e76ec792358082caf660fbdc846c64b2 (patch)
tree3def2baf86fec5a64b0f5e234c94da3b2e1afe73 /Misc/NEWS.d
parent45faf151c693b6f13f78926761caea6df7242024 (diff)
downloadcpython-5445e173e76ec792358082caf660fbdc846c64b2.zip
cpython-5445e173e76ec792358082caf660fbdc846c64b2.tar.gz
cpython-5445e173e76ec792358082caf660fbdc846c64b2.tar.bz2
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.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2022-01-28-08-47-53.bpo-46553.f7Uc96.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2022-01-28-08-47-53.bpo-46553.f7Uc96.rst b/Misc/NEWS.d/next/Library/2022-01-28-08-47-53.bpo-46553.f7Uc96.rst
new file mode 100644
index 0000000..2c03912
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2022-01-28-08-47-53.bpo-46553.f7Uc96.rst
@@ -0,0 +1 @@
+In :func:`typing.get_type_hints`, support evaluating bare stringified ``ClassVar`` annotations. Patch by Gregory Beauregard.