Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Use * instead of Unpack[...] in messages when targeting Python 3.11 or later #16445

Copy link
Copy link
Open
@JukkaL

Description

@JukkaL
Issue body actions

On Python 3.11 and later it seems better to use the native syntax with * instead of Unpack[...] in various messages.

This is the current behavior:

x: tuple[int, *tuple[int, ...]]
# note: Revealed type is "tuple[builtins.int, Unpack[builtins.tuple[builtins.int, ...]]]"
reveal_type(x)

I'd expect the note to look like this:

Revealed type is "tuple[builtins.int, *builtins.tuple[builtins.int, ...]]"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.