Skip to content

is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias#89826

@serhiy-storchaka

Description

@serhiy-storchaka
BPO45663
Nosy@gvanrossum, @ericvsmith, @serhiy-storchaka, @miss-islington
PRs
  • bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias #29294
  • [3.10] bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294) #29925
  • [3.9] bpo-45663: Fix is_dataclass() for dataclasses which are subclasses of types.GenericAlias (GH-29294) #29926
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee=Noneclosed_at=<Date2021-12-07.12:01:12.403>created_at=<Date2021-10-28.20:10:31.152>labels= ['type-bug', 'library', '3.9', '3.10', '3.11'] title='is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias'updated_at=<Date2021-12-07.12:01:12.402>user='https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity=<Date2021-12-07.12:01:12.402>actor='serhiy.storchaka'assignee='none'closed=Trueclosed_date=<Date2021-12-07.12:01:12.403>closer='serhiy.storchaka'components= ['Library (Lib)'] creation=<Date2021-10-28.20:10:31.152>creator='serhiy.storchaka'dependencies= [] files= [] hgrepos= [] issue_num=45663keywords= ['patch'] message_count=4.0messages= ['405256', '407739', '407743', '407745'] nosy_count=4.0nosy_names= ['gvanrossum', 'eric.smith', 'serhiy.storchaka', 'miss-islington'] pr_nums= ['29294', '29925', '29926'] priority='normal'resolution='fixed'stage='resolved'status='closed'superseder=Nonetype='behavior'url='https://bugs.python.org/issue45663'versions= ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions