Skip to content

Commit

Permalink
fix: remove abstract __eq__ and __hash__
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Nov 21, 2023
1 parent 1d489b3 commit ee41575
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
8 changes: 0 additions & 8 deletions src/dep_logic/markers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,3 @@ def __repr__(self) -> str:
@abstractmethod
def __str__(self) -> str:
raise NotImplementedError

@abstractmethod
def __hash__(self) -> int:
raise NotImplementedError

@abstractmethod
def __eq__(self, other: object) -> bool:
raise NotImplementedError
15 changes: 0 additions & 15 deletions src/dep_logic/specifiers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,6 @@ def __str__(self) -> str:
should be representative of the Specifier itself.
"""

@abc.abstractmethod
def __hash__(self) -> int:
"""
Returns a hash value for this Specifier-like object.
"""

@abc.abstractmethod
def __eq__(self, other: object) -> bool:
"""
Returns a boolean representing whether or not the two Specifier-like
objects are equal.
:param other: The other object to check against.
"""

@abc.abstractmethod
def __and__(self, other: t.Any) -> BaseSpecifier:
raise NotImplementedError
Expand Down

0 comments on commit ee41575

Please sign in to comment.