mirror of https://github.com/astral-sh/ruff
Include match in nested block check (#3137)
This commit is contained in:
parent
4ad4e3e091
commit
17ab71ff75
|
|
@ -206,6 +206,7 @@ pub fn in_nested_block<'a>(mut parents: impl Iterator<Item = &'a Stmt>) -> bool
|
||||||
| StmtKind::TryStar { .. }
|
| StmtKind::TryStar { .. }
|
||||||
| StmtKind::If { .. }
|
| StmtKind::If { .. }
|
||||||
| StmtKind::With { .. }
|
| StmtKind::With { .. }
|
||||||
|
| StmtKind::Match { .. }
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue