Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Error message for walrus etc. in PEP 695 contexts could be improved #104572

Closed
Assignees
JelleZijlstra
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-typingtype-bugAn unexpected behavior, bug, or error
@JelleZijlstra

Description

@JelleZijlstra

Before:

>>> type A[T: (x:=3)] = int  File "<stdin>", line 1SyntaxError: 'named expression' can not be used within a TypeVar bound

After:

>>> type A[T: (x:=3)] = int  File "<stdin>", line 1SyntaxError: named expression cannot be used within a TypeVar bound

("cannot" is one word; the quotes don't really make sense here)

Linked PRs

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-typingtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp