diff --git a/src/stcal/jump/circle.py b/src/stcal/jump/circle.py index 2775fdca3..09d46cb8b 100644 --- a/src/stcal/jump/circle.py +++ b/src/stcal/jump/circle.py @@ -69,7 +69,9 @@ def __mul__(self, factor: float) -> 'Circle': def __contains__(self, point: tuple[float, float]) -> bool: return numpy.hypot(*(numpy.array(point) - self.center)) <= self.radius * RELATIVE_TOLERANCE - def __eq__(self, other: 'Circle') -> bool: + def __eq__(self, other: object) -> bool: + if not isinstance(other, Circle): + return False return numpy.all(self.center == other.center) and self.radius == other.radius def almost_equals(self, other: 'Circle', delta: Optional[float] = None) -> bool: