Enable "warn_unreachable"
Also, remove the dead `isinstance()` check in `Location.relate_to()`
This commit is contained in:
parent
0a5f8f6c55
commit
784d5c8ca0
1 changed files with 3 additions and 9 deletions
|
|
@ -486,6 +486,9 @@ warn_redundant_casts = true
|
|||
# Report functions returning `Any` despite a non-`Any` return type
|
||||
warn_return_any = true
|
||||
|
||||
# Report code that can never be reached
|
||||
warn_unreachable = true
|
||||
|
||||
# Report "[[tool.mypy.overrides]]" sections that match no module
|
||||
warn_unused_configs = true
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue