Skip to content

Problems caused by isinstance(list[int], type) returning True #89828

Description

@serhiy-storchaka
BPO 45665
Nosy @gvanrossum, @serhiy-storchaka, @wyfo, @Fidget-Spinner, @AlexWaygood, @martinitus
Dependencies
  • bpo-40296: help(list[int]) fails
  • bpo-45438: inspect not capturing type annotations created by class_getitem
  • bpo-45662: Incorrect repr of InitVar of a type alias
  • bpo-45663: is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias
  • bpo-45664: resolve_bases() and new_class() do not work with type alias of a built-in type
  • bpo-46032: functools' singledispatch does not support GenericAlias
  • 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 = None
    created_at = <Date 2021-10-29.08:27:43.950>
    labels = ['type-bug', 'library', '3.9', '3.10', '3.11']
    title = 'Problems caused by isinstance(list[int], type) returning True'
    updated_at = <Date 2022-01-06.16:58:47.655>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2022-01-06.16:58:47.655>
    actor = 'AlexWaygood'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2021-10-29.08:27:43.950>
    creator = 'serhiy.storchaka'
    dependencies = ['40296', '45438', '45662', '45663', '45664', '46032']
    files = []
    hgrepos = []
    issue_num = 45665
    keywords = []
    message_count = 17.0
    messages = ['405290', '405291', '405427', '405429', '408207', '409167', '409233', '409679', '409691', '409694', '409697', '409701', '409702', '409703', '409711', '409792', '409881']
    nosy_count = 6.0
    nosy_names = ['gvanrossum', 'serhiy.storchaka', 'joperez', 'kj', 'AlexWaygood', 'martinitus']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue45665'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Activity

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    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/ directorytopic-typingtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions