Content-Length: 279113 | pFad | https://github.com/python/cpython/issues/105486

A3 Inconsistent `repr` of `types.GenericAlias` with `ParamSpec` · Issue #105486 · python/cpython · GitHub
Skip to content

Inconsistent repr of types.GenericAlias with ParamSpec #105486

@sobolevn

Description

@sobolevn

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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/105486

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy