-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Open
Labels
topic-parsertopic-typingtype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Current message:
>>> type A[yield] = ...
File "<python-input-0>", line 1
type A[yield] = ...
^^^^^
SyntaxError: invalid syntax
>>> type A[...] = ...
File "<python-input-1>", line 1
type A[...] = ...
^^^
SyntaxError: invalid syntax
>>> type A[1] = ...
File "<python-input-2>", line 1
type A[1] = ...
^
SyntaxError: invalid syntax
Would it make sense to say what can be there?
Something like: expected a type parameter definition, found "%R" % _PyPegen_get_expr_name(expr)
Linked PRs
JelleZijlstra, AlexWaygood, imtoopunkforyou, nineteendo, efimov-mikhail and 1 more
Metadata
Metadata
Assignees
Labels
topic-parsertopic-typingtype-featureA feature request or enhancementA feature request or enhancement