ruff: Fix PERF102 Using only the keys/values of a dict.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-07-31 13:16:30 -07:00
committed by Tim Abbott
parent 55aa29bef4
commit c4748298bb
10 changed files with 10 additions and 13 deletions

View File

@@ -145,7 +145,7 @@ class Command(compilemessages.Command):
# frontend stats
with open(self.get_json_filename(locale_path, locale), "rb") as reader:
for key, value in orjson.loads(reader.read()).items():
for value in orjson.loads(reader.read()).values():
total += 1
if value == "":
not_translated += 1