feature: added equality comparison magic method counterparts

This commit is contained in:
2026-01-07 23:26:17 -05:00
parent a4a8260d1c
commit 877e133eec

View File

@@ -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