dfa
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Hazel 2024-05-03 14:55:22 +02:00
parent 9c369b421d
commit a7711761f9

View File

@ -84,6 +84,7 @@ class Collection(Generic[T]):
for e in self._data: for e in self._data:
self._map_element(e, no_unmap=True) self._map_element(e, no_unmap=True)
def _find_object(self, __object: T, **kwargs) -> Optional[T]: def _find_object(self, __object: T, **kwargs) -> Optional[T]:
self._remap() self._remap()
@ -216,8 +217,8 @@ class Collection(Generic[T]):
self._data.remove(existing) self._data.remove(existing)
self._unmap_element(existing) self._unmap_element(existing)
def contains(self, other: T) -> bool: def contains(self, __object: T) -> bool:
return self._find_object(other) is not None return self._find_object(__object) is not None
def extend(self, other_collections: Optional[Generator[T, None, None]], **kwargs): def extend(self, other_collections: Optional[Generator[T, None, None]], **kwargs):
if other_collections is None: if other_collections is None: