This commit is contained in:
JDJG Inc. Official 2021-10-27 09:15:38 -04:00
parent 061b2e3d90
commit da5ee84abe

View File

@ -441,8 +441,7 @@ def get(iterable: Iterable[T], **attrs: Any) -> Optional[T]:
return elem
return None
converted = [(attrget(attr.replace("__", ".")), value)
for attr, value in attrs.items()]
converted = [(attrget(attr.replace("__", ".")), value) for attr, value in attrs.items()]
for elem in iterable:
if _all(pred(elem) == value for pred, value in converted):