[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-12-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-12-05 Thread miss-islington
miss-islington added the comment: New changeset 19050711f5a68e50b942b3b7f1f4cf398f27efff by Miss Islington (bot) in branch '3.9': bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294)

[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-12-05 Thread miss-islington
miss-islington added the comment: New changeset abceb66c7e33d165361d8a26efb3770faa721aff by Miss Islington (bot) in branch '3.10': bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294)

[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-12-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +28150 pull_request: https://github.com/python/cpython/pull/29926 ___ Python tracker ___

[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-12-05 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28149 pull_request: https://github.com/python/cpython/pull/29925 ___ Python tracker

[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-12-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 446be166861b2f08f87f74018113dd98ca5fca02 by Serhiy Storchaka in branch 'main': bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294)

[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-10-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +27557 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29294 ___ Python tracker

[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-10-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : >>> 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 >>>