ruff: Fix RUF015 Prefer next(...) over single element slice.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 3b09197fdf)
This commit is contained in:
Anders Kaseorg
2023-07-21 15:34:11 -07:00
committed by Alex Vandiver
parent a0ce536fa4
commit b9aa772885
21 changed files with 55 additions and 63 deletions

View File

@@ -155,7 +155,7 @@ class Command(BaseCommand):
table: Type[BaseCount],
) -> None:
end_times = time_range(
last_end_time, last_end_time, stat.frequency, len(list(fixture_data.values())[0])
last_end_time, last_end_time, stat.frequency, len(next(iter(fixture_data.values())))
)
if table == InstallationCount:
id_args: Dict[str, Any] = {}