]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-133956 fix bug where `dataclass` wouldn't detect `ClassVar` fields if `ClassVar...
authorTamika Nomara <taminomara@gmail.com>
Sun, 3 May 2026 22:59:18 +0000 (02:59 +0400)
committerGitHub <noreply@github.com>
Sun, 3 May 2026 22:59:18 +0000 (15:59 -0700)
commit414406238707e24a800938c690d1b7db3b302aae
tree8bd8780cb496060581cfd25e61bf74e39f85abf4
parent68fe899feb8515113d09a4161f34ae45809b807a
gh-133956 fix bug where `dataclass` wouldn't detect `ClassVar` fields if `ClassVar` was re-exported from a module other than `typing` (#140541)

Co-authored-by: Dmitrii Zherbin <zherbin.dima@yandex.ru>
Lib/dataclasses.py
Lib/test/test_dataclasses/__init__.py
Lib/test/test_dataclasses/_types_proxy.py [new file with mode: 0644]
Lib/test/test_dataclasses/dataclass_module_3.py [new file with mode: 0644]
Lib/test/test_dataclasses/dataclass_module_3_str.py [new file with mode: 0644]
Lib/test/test_dataclasses/dataclass_module_4.py [new file with mode: 0644]
Lib/test/test_dataclasses/dataclass_module_4_str.py [new file with mode: 0644]
Misc/NEWS.d/next/Library/2025-05-16-01-43-58.gh-issue-133956.5kWDYd.rst [new file with mode: 0644]