Enable "warn_unreachable"

Also, remove the dead `isinstance()` check in `Location.relate_to()`
This commit is contained in:
Alexander Hess 2026-12-01 13:02:57 +01:00
commit 784d5c8ca0
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -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