ruff: enable PERF checks set

This commit is contained in:
Dima Gerasimov 2024-08-28 02:16:12 +01:00
parent a751f2b69f
commit 721a0cd3fc
4 changed files with 12 additions and 3 deletions

View file

@ -199,7 +199,7 @@ class Loader:
def load_items(self, metas: Json) -> Iterable[Highlight]:
for _p, meta in metas.items():
for _p, meta in metas.items(): # noqa: PERF102
with wrap(meta, throw=not config.defensive) as meta:
yield from self.load_item(meta)