diff --git a/src/pendulum/tz/timezone.py b/src/pendulum/tz/timezone.py index 63a8cc6e..628c09ee 100644 --- a/src/pendulum/tz/timezone.py +++ b/src/pendulum/tz/timezone.py @@ -67,7 +67,7 @@ def __new__(cls, key: str) -> Self: except zoneinfo.ZoneInfoNotFoundError: raise InvalidTimezone(key) - def __eq__(self, other: Any) -> bool: + def __eq__(self, other: object) -> bool: return isinstance(other, PendulumTimezone) and self.key == other.key @property