Skip to content

resolve_bases() and new_class() do not work with type alias of a built-in type #89827

Closed
@serhiy-storchaka

Description

@serhiy-storchaka
BPO 45664
Nosy @gvanrossum, @serhiy-storchaka, @1st1, @miss-islington, @Fidget-Spinner
PRs
  • bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base #29298
  • [3.10] bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base (GH-29298) #29927
  • [3.9] bpo-45664: Fix resolve_bases() and new_class() for GenericAlias instance as a base (GH-29298) #29928
  • 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 = None
    closed_at = <Date 2021-12-07.12:00:37.234>
    created_at = <Date 2021-10-28.20:38:27.785>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'resolve_bases() and new_class() do not work with type alias of a built-in type'
    updated_at = <Date 2021-12-07.12:00:37.234>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2021-12-07.12:00:37.234>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-12-07.12:00:37.234>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2021-10-28.20:38:27.785>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45664
    keywords = ['patch']
    message_count = 4.0
    messages = ['405265', '407740', '407746', '407926']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'serhiy.storchaka', 'yselivanov', 'miss-islington', 'kj']
    pr_nums = ['29298', '29927', '29928']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45664'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixes3.9only security fixesstdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions