Skip to content

Commit 613d59c

Browse files
John Griffithwyattscarpenter
authored andcommitted
Add warn-unreachable to strict mode
This is useful check for dead code analysis
1 parent f336726 commit 613d59c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ def add_invertible_flag(
825825
add_invertible_flag(
826826
"--warn-unreachable",
827827
default=False,
828-
strict_flag=False,
828+
strict_flag=True,
829829
help="Warn about statements or expressions inferred to be unreachable",
830830
group=lint_group,
831831
)

0 commit comments

Comments
 (0)