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
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue