lint fixes

This commit is contained in:
Maxim Devaev
2025-05-03 04:27:21 +03:00
parent 7d7edb1c03
commit b7715b731e
4 changed files with 8 additions and 3 deletions

View File

@@ -281,7 +281,7 @@ class _PortsDict(Generic[_T]):
else:
self.kvs[port] = value
def __eq__(self, other: "_PortsDict[_T]") -> bool:
def __eq__(self, other: object) -> bool:
if not isinstance(other, self.__class__):
return False
return (self.kvs == other.kvs)