Skip to content

Inconsistent repr of types.GenericAlias with ParamSpec #105486

Closed
@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