elt
in generator expressions have incorrect type annotations
#500
Labels
documentation
Improvements or additions to documentation
good first issue
Good for newcomers
parsing
Converting source code into CST nodes
The fine docs say that
elt
in the various comprehension nodes are of typeBaseAssignTargetExpression
. This is a lie. Observe: in the syntactically correct and semantically plausible expression(i ** 2 for i in _)
, theelt
is constructed fromi**2
which is aBinaryOperation
:But alas,
BinaryOperation
is not aBaseAssignTargetExpression
.What is the correct type for
elt
here?BaseExpression
?The text was updated successfully, but these errors were encountered: