refactor: annotate every remaining signature

This commit is contained in:
Abdessamad Derraz committed 2026-10-18 00:44:20 +02:00
1 parent 5961b6bfe7
commit faa8af0800
52 files changed
+261 -145

No files matched your search

+3 -3
View File
@@ -27,7 +27,7 @@ def set_offline(value: bool) -> None:
global _OFFLINE
_OFFLINE = value
def _values(raw) -> list[str]:
def _values(raw: object) -> list[str]:
"""A hash field's values: one, a list, or a comma-separated string."""
items = raw if isinstance(raw, list) else [raw] if raw else []
return [
@@ -235,8 +235,8 @@ def preferred_entries(
bios_dir: str,
base_dest: str,
required_only: bool,
zip_contents,
offline,
zip_contents: dict | None,
offline: bool | None,
) -> dict[str, int]:
"""Which declaration wins when several claim the same destination.