From 17ac646f1827ea8f769a9a465616b067917ba73c Mon Sep 17 00:00:00 2001 From: Dan LaManna Date: Mon, 1 Jul 2024 10:10:57 -0400 Subject: [PATCH] Fix ruff linting error --- isic_cli/io/http.py | 4 +--- tox.ini | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/isic_cli/io/http.py b/isic_cli/io/http.py index 57b4b96..85815af 100644 --- a/isic_cli/io/http.py +++ b/isic_cli/io/http.py @@ -63,9 +63,7 @@ def _merge_summaries(a: dict[str, list[str]], b: dict[str, list[str]]) -> dict[s for k, v in a.items(): ret[k] = v + b.get(k, []) - for k, v in b.items(): - if k not in a: - ret[k] = v + ret.update({k: v for k, v in b.items() if k not in a}) return ret diff --git a/tox.ini b/tox.ini index 4707eb8..ba6dc9e 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,7 @@ envlist = skipsdist = true skip_install = true deps = - ruff + ruff==0.5.0 commands = ruff check {posargs:.} ruff format --check {posargs:.}