Skip to content

Commit

Permalink
Consistency
Browse files Browse the repository at this point in the history
Co-authored-by: Bartosz Sokorski <[email protected]>
  • Loading branch information
malthe and Secrus committed Dec 20, 2024
1 parent 505ea1d commit 454d17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pendulum/tz/timezone.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 454d17c

Please sign in to comment.