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 serhiy.storchaka
Recipients eric.smith, gvanrossum, serhiy.storchaka
Date 2021-10-28.20:10:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1635451831.16.0.493312475993.issue45663@roundup.psfhosted.org>
In-reply-to
Content
>>> import dataclasses, types
>>> @dataclasses.dataclass
... class A(types.GenericAlias):
...     origin: type
...     args: type
... 
>>> dataclasses.is_dataclass(A)
True
>>> a = A(list, int)
>>> dataclasses.is_dataclass(type(a))
True
>>> dataclasses.is_dataclass(a)
False
History
Date User Action Args
2021-10-28 20:10:31serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, eric.smith
2021-10-28 20:10:31serhiy.storchakasetmessageid: <1635451831.16.0.493312475993.issue45663@roundup.psfhosted.org>
2021-10-28 20:10:31serhiy.storchakalinkissue45663 messages
2021-10-28 20:10:31serhiy.storchakacreate