◐ Shell
reader mode source ↗

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author AlexWaygood
Recipients AlexWaygood, aidan.b.clark, eric.smith, slebedev, sobolevn
Date 2021-10-22.11:09:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1634900969.36.0.366076968379.issue45524@roundup.psfhosted.org>
In-reply-to
Content
@Nikita, I had a go at writing some more rigorous tests regarding this issue. I found the same thing you did -- the issue seems:

* Isolated to dataclasses specifically (doesn't occur with TypedDicts, standard classes or NamedTuples)
* Isolated to the __init__ method of dataclasses
* Only occurs when you *subclass* a dataclass defined in another module.

My tests are in these two files on my cpython fork:

* https://github.com/AlexWaygood/cpython/blob/forward-annotations-bpo-45524/Lib/test/test_future_annotations.py
* https://github.com/AlexWaygood/cpython/blob/forward-annotations-bpo-45524/Lib/test/_typing_imports_helper.py

(I'm not proposing adding two new files to the cpython test suite -- just put the tests in new files so that I could isolate the new tests from the rest of the test suite and understand the problem better.)
History
Date User Action Args
2021-10-22 11:09:29AlexWaygoodsetrecipients: + AlexWaygood, eric.smith, slebedev, sobolevn, aidan.b.clark
2021-10-22 11:09:29AlexWaygoodsetmessageid: <1634900969.36.0.366076968379.issue45524@roundup.psfhosted.org>
2021-10-22 11:09:29AlexWaygoodlinkissue45524 messages
2021-10-22 11:09:29AlexWaygoodcreate