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, GBeauregard, JelleZijlstra, eric.smith, thomkeh
Date 2022-03-31.10:25:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648722324.4.0.966926845341.issue47166@roundup.psfhosted.org>
In-reply-to
Content
I think implementing this would add complexity to the code in dataclasses.py (though Eric's the expert!).

For your use case, is it essential that the type alias declaration be inside the class scope? Would it be possible for you to simply have the alias declaration in the global scope instead?
History
Date User Action Args
2022-03-31 10:25:24AlexWaygoodsetrecipients: + AlexWaygood, eric.smith, JelleZijlstra, GBeauregard, thomkeh
2022-03-31 10:25:24AlexWaygoodsetmessageid: <1648722324.4.0.966926845341.issue47166@roundup.psfhosted.org>
2022-03-31 10:25:24AlexWaygoodlinkissue47166 messages
2022-03-31 10:25:24AlexWaygoodcreate