nixos-rebuild-ng: fix linter errors

This commit is contained in:
Thiago Kenji Okada 2025-10-27 21:51:08 +00:00
parent 0cbfaa93ec
commit 0ac2bccd70
2 changed files with 4 additions and 3 deletions

View file

@ -90,11 +90,11 @@ def tabulate(
def format_row(row: Mapping[str, Any]) -> str:
s = (2 * " ").join(
f"{str(row[header]).ljust(width)}"
for header, width in zip(data_headers, column_widths)
for header, width in zip(data_headers, column_widths, strict=True)
)
return s.strip()
result = [format_row(dict(zip(data_headers, data_headers)))]
result = [format_row(dict(zip(data_headers, data_headers, strict=True)))]
for row in data:
result.append(format_row(row))

View file

@ -1,5 +1,6 @@
from collections.abc import Callable
from types import ModuleType
from typing import Any, Callable
from typing import Any
def get_qualified_name(