diff --git a/src/ahriman/core/repository/executor.py b/src/ahriman/core/repository/executor.py index cc9fa0a5..f4aa296c 100644 --- a/src/ahriman/core/repository/executor.py +++ b/src/ahriman/core/repository/executor.py @@ -19,7 +19,7 @@ # import shutil -from collections.abc import Generator, Iterable +from collections.abc import Iterable, Iterator from pathlib import Path from tempfile import TemporaryDirectory @@ -41,7 +41,7 @@ class Executor(PackageInfo, Cleaner): trait for common repository update processes """ - def _archive_lookup(self, package: Package) -> Generator[Path, None, None]: + def _archive_lookup(self, package: Package) -> Iterator[Path]: """ check if there is a rebuilt package already diff --git a/src/ahriman/core/utils.py b/src/ahriman/core/utils.py index 7aff41c0..504f8050 100644 --- a/src/ahriman/core/utils.py +++ b/src/ahriman/core/utils.py @@ -258,7 +258,7 @@ def extract_user() -> str | None: @contextlib.contextmanager -def filelock(path: Path) -> Generator[None, None, None]: +def filelock(path: Path) -> Iterator[None]: """ lock on file passed as argument