feature: added equality comparison magic method counterparts
This commit is contained in:
@@ -84,9 +84,15 @@ class SSHKey:
|
||||
def __eq__(self, other: Self) -> bool:
|
||||
return self.__value == other._SSHKey__value
|
||||
|
||||
def __ne__(self, other: Self) -> bool | Never:
|
||||
return self.__value != other._SSHKey__value
|
||||
|
||||
def __eqcontent__(self, other: Self) -> bool:
|
||||
return self.__value.read_text() == other._SSHKey__value.read_text()
|
||||
|
||||
def __neqcontent__(self, other: Self) -> bool:
|
||||
return self.__value.read_text() != other._SSHKey__value.read_text()
|
||||
|
||||
def __add__(self, other: Self | ExecutedPath | str):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
Reference in New Issue
Block a user