feat: tried improving fetching
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Hellow
2024-04-30 02:09:52 +02:00
parent e9b1a12aa1
commit a3ef671f00
2 changed files with 16 additions and 4 deletions

View File

@@ -143,7 +143,10 @@ class Collection(Generic[T]):
return
existing_object.merge(__object, **kwargs)
self._map_element(existing_object)
self._map_element(existing_object)
def contains(self, __object: T) -> bool:
return self._find_object(__object) is not None
def extend(self, __iterable: Optional[Generator[T, None, None]], **kwargs):
if __iterable is None: