diff --git a/nur/manifest.py b/nur/manifest.py index 45ffc03f0..60a0aee01 100644 --- a/nur/manifest.py +++ b/nur/manifest.py @@ -1,7 +1,7 @@ import json from enum import Enum, auto from pathlib import Path -from typing import Dict, List, Optional, Union, Any +from typing import Dict, List, Optional, Any from urllib.parse import ParseResult, urlparse from .fileutils import PathType, to_path @@ -110,7 +110,7 @@ def load_locked_versions(path: Path) -> Dict[str, LockedVersion]: if path.exists(): return _load_locked_versions(path) else: - return dict(repos={}) + return {} def load_manifest(manifest_path: PathType, lock_path: PathType) -> Manifest: diff --git a/nur/update.py b/nur/update.py index 81c1d12cd..773018248 100644 --- a/nur/update.py +++ b/nur/update.py @@ -74,7 +74,7 @@ def update_lock_file(repos: List[Repo]) -> None: if repo.locked_version: locked_repos[repo.name] = repo.locked_version.as_json() - write_json_file(locked_repos, LOCK_PATH) + write_json_file(dict(repos=locked_repos), LOCK_PATH) def update_command(args: Namespace) -> None: