Skip to content

pathlib.PurePath.__class_getitem__ does not return GenericAlias #90641

Closed
@sobolevn

Description

@sobolevn
BPO 46483
Nosy @asvetlov, @serhiy-storchaka, @JelleZijlstra, @miss-islington, @isidentical, @sobolevn, @Fidget-Spinner, @AlexWaygood
PRs
  • bpo-46483: change PurePath.__class_getitem__ to return GenericAlias #30822
  • bpo-46483: remove __class_getitem__ from pathlib.PurePath #30848
  • bpo-46483: [doc] Remove pathlib classes from list of stdlib classes that can be parameterized at runtime #31281
  • [3.9] bpo-46483: [doc] pathlib classes no longer support parameterized generics (GH-31281) #31286
  • [3.10] bpo-46483: [doc] pathlib classes no longer support parameterized generics (GH-31281) #31287
  • 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 2022-02-03.09:24:10.997>
    created_at = <Date 2022-01-23.08:16:30.578>
    labels = ['type-bug', 'library', '3.11']
    title = '`pathlib.PurePath.__class_getitem__` does not return `GenericAlias`'
    updated_at = <Date 2022-02-11.21:04:05.289>
    user = 'https://github.com/sobolevn'

    bugs.python.org fields:

    activity = <Date 2022-02-11.21:04:05.289>
    actor = 'miss-islington'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-02-03.09:24:10.997>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2022-01-23.08:16:30.578>
    creator = 'sobolevn'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46483
    keywords = ['patch']
    message_count = 12.0
    messages = ['411354', '411373', '411374', '411376', '411460', '411518', '411569', '412146', '412430', '413096', '413099', '413100']
    nosy_count = 8.0
    nosy_names = ['asvetlov', 'serhiy.storchaka', 'JelleZijlstra', 'miss-islington', 'BTaskaya', 'sobolevn', 'kj', 'AlexWaygood']
    pr_nums = ['30822', '30848', '31281', '31286', '31287']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue46483'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only 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