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 JelleZijlstra
Recipients AlexWaygood, GBeauregard, JelleZijlstra, eric.smith, thomkeh
Date 2022-03-31.02:10:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1648692619.28.0.243220377736.issue47166@roundup.psfhosted.org>
In-reply-to
Content
From a typing perspective this is reasonable. See this thread about type aliases in class scopes: https://mail.python.org/archives/list/typing-sig@python.org/thread/CGOO7GPPECGMLFDUDXSSXTRADI4BXYCS/ 

However, it's a niche use case and we could decide that we don't want to further complicate the annotation parsing in dataclasses.py.
History
Date User Action Args
2022-03-31 02:10:19JelleZijlstrasetrecipients: + JelleZijlstra, eric.smith, AlexWaygood, GBeauregard, thomkeh
2022-03-31 02:10:19JelleZijlstrasetmessageid: <1648692619.28.0.243220377736.issue47166@roundup.psfhosted.org>
2022-03-31 02:10:19JelleZijlstralinkissue47166 messages
2022-03-31 02:10:19JelleZijlstracreate