fix: annotate the unit path set so mypy accepts service_packages (NetOrk/netork#1236)
CI / test (3.10) (push) Successful in 44s
CI / test (3.11) (push) Successful in 33s
CI / test (3.12) (push) Successful in 32s
CI / test (3.13) (push) Successful in 30s
CI / test (3.10) (pull_request) Successful in 42s
CI / test (3.11) (pull_request) Successful in 43s
CI / test (3.12) (pull_request) Successful in 38s
CI / test (3.13) (pull_request) Successful in 35s

This commit is contained in:
christianmanivong committed 2026-10-19 18:50:41 +02:00
1 parent cce26eff44
commit a21e365c4e
1 file changed
+2 -1
+2 -1
View File
@@ -82,7 +82,8 @@ def _report(output: str) -> Dict[str, List[str]]:
def _units(lines: List[str]) -> Dict[str, Set[str]]:
"""``systemctl show`` blocks -> ``{unit: its unit file and binary}``."""
units: Dict[str, Set[str]] = {}
unit, paths = "", set()
unit = ""
paths: Set[str] = set()
for line in [*lines, ""]:
key, _, value = line.partition("=")
if not line.strip():