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

@ -169,11 +169,6 @@ class TestRelateTo:
with pytest.raises(RuntimeError, match="once"):
location.relate_to(origin)
def test_call_relate_to_with_wrong_other_type(self, location):
"""`other` must be another `Location`."""
with pytest.raises(TypeError, match="Location"):
location.relate_to(object())
def test_call_relate_to_with_far_away_other(
self,
location,