Skip to content

Commit 9ed05a1

Browse files
committed
include generator expressions
1 parent 068e73e commit 9ed05a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/ruff_python_parser/tests/fixtures.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,9 @@ impl Visitor<'_> for SemanticSyntaxCheckerVisitor<'_> {
607607
})
608608
| ast::Expr::SetComp(ast::ExprSetComp {
609609
elt, generators, ..
610+
})
611+
| ast::Expr::Generator(ast::ExprGenerator {
612+
elt, generators, ..
610613
}) => {
611614
for comprehension in generators {
612615
self.visit_comprehension(comprehension);

0 commit comments

Comments
 (0)