mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[arch.pacman] refactoring: 'map_installed' typing
This commit is contained in:
@@ -95,7 +95,7 @@ def _fill_ignored(res: dict):
|
||||
res['pkgs'] = list_ignored_packages()
|
||||
|
||||
|
||||
def map_installed(names: Iterable[str] = None) -> dict: # returns a dict with with package names as keys and versions as values
|
||||
def map_installed(names: Optional[Iterable[str]] = None) -> Dict[str, Dict[str, str]]:
|
||||
ignored = {}
|
||||
thread_ignored = Thread(target=_fill_ignored, args=(ignored,), daemon=True)
|
||||
thread_ignored.start()
|
||||
|
||||
Reference in New Issue
Block a user