nixos-rebuild-ng: fix linter errors
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user