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

@ -144,10 +144,6 @@ class Location:
msg = "the `other` origin may only be set once"
raise RuntimeError(msg)
if not isinstance(other, Location):
msg = "`other` is not a `Location` object"
raise TypeError(msg)
if self.zone != other.zone:
msg = "`other` must be in the same zone, including the band"
raise ValueError(msg)