From 17ab71ff757f7683b749c6b58253bede62c59a6d Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 22 Feb 2023 14:32:08 -0500 Subject: [PATCH] Include match in nested block check (#3137) --- crates/ruff/src/ast/operations.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ruff/src/ast/operations.rs b/crates/ruff/src/ast/operations.rs index 2b0e8eed0c..b35c439765 100644 --- a/crates/ruff/src/ast/operations.rs +++ b/crates/ruff/src/ast/operations.rs @@ -206,6 +206,7 @@ pub fn in_nested_block<'a>(mut parents: impl Iterator) -> bool | StmtKind::TryStar { .. } | StmtKind::If { .. } | StmtKind::With { .. } + | StmtKind::Match { .. } ) }) }