-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Before:
>>> type A[T: (x:=3)] = int
File "<stdin>", line 1
SyntaxError: 'named expression' can not be used within a TypeVar bound
After:
>>> type A[T: (x:=3)] = int
File "<stdin>", line 1
SyntaxError: 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)(Objects, Python, Grammar, and Parser dirs)topic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error