diff --git a/napalm_device_types/service_packages.py b/napalm_device_types/service_packages.py index c0dc146..f65068a 100644 --- a/napalm_device_types/service_packages.py +++ b/napalm_device_types/service_packages.py @@ -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():