GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Inconsistent `repr` of `types.GenericAlias` with `ParamSpec` · Issue #105486 · python/cpython

Inconsistent repr of types.GenericAlias with ParamSpec #105486

New issue
Copy link
New issue
Copy link
Closed
Closed
Inconsistent repr of types.GenericAlias with ParamSpec#105486
Copy link
Assignees
sobolevn
Labels
topic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@sobolevn
sobolevn
opened on Jun 8, 2023
Issue body actions

The simplest repro:

>>> type A[X, **Y] = None
>>> A[int, [str]]
A[int, [<class 'str'>]]

I think that it should be:

>>> type A[X, **Y] = None
>>> A[int, [str]]
A[int, [str]]

We already had similar issues in the past: #102637

This happens somewhere in ga_repr, I will have a look.

Linked PRs

  • gh-105486: Change the repr of ParamSpec list of args in GenericAlias #105488
  • [3.12] gh-105486: Change the repr of ParamSpec list of args in GenericAlias (GH-105488) #106297

Activity

  1. sobolevn
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    topic-typing
    on Jun 8, 2023
  2. sobolevn
    self-assigned this
    on Jun 8, 2023
  3. JelleZijlstra
    added a commit that references this issue on Jul 1, 2023

    gh-105486: Change the `repr` of `ParamSpec` list of args in `GenericA…

    eb7d6e7
  4. miss-islington
    added a commit that references this issue on Jul 1, 2023

    pythongh-105486: Change the `repr` of `ParamSpec` list of args in `Ge…

    9d46011
  5. JelleZijlstra
    added a commit that references this issue on Jul 1, 2023

    [3.12] gh-105486: Change the `repr` of `ParamSpec` list of args in `G…

    c4298d5
  6. AlexWaygood
    closed this as completedon Jul 1, 2023
  7. manosriram
    added a commit that references this issue on Jul 1, 2023

    pythongh-105486: Change the `repr` of `ParamSpec` list of args in `Ge…

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

Metadata

Metadata

Assignees

  • @sobolevn
    sobolevn

Labels

topic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.