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 23, 2024
1 parent 505ea1d commit 64e2553
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pendulum/tz/timezone.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from abc import ABC
from abc import abstractmethod
from typing import TYPE_CHECKING
from typing import Any
from typing import TypeVar
from typing import cast

Expand Down Expand Up @@ -67,7 +66,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 64e2553

Please sign in to comment.