mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
nixos-rebuild-ng: fix linter errors
This commit is contained in:
parent
0cbfaa93ec
commit
0ac2bccd70
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue