mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-22 19:14:20 +00:00
🔧 Allow equality checks between casings
This commit is contained in:
parent
5a29f19143
commit
292ea30298
1 changed files with 3 additions and 0 deletions
|
@ -39,3 +39,6 @@ class Casing(metaclass=abc.ABCMeta):
|
|||
:return: A :class:`int` value that uniquely identifies the object in this Python interpreter process.
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def __eq__(self, other) -> bool:
|
||||
return self.__class__ is other.__class__ and hash(self) == hash(other)
|
||||
|
|
Loading…
Reference in a new issue