remove generators

This commit is contained in:
2026-01-16 09:22:36 +02:00
parent 9ccff5657b
commit e2812c071b
2 changed files with 3 additions and 3 deletions

View File

@ -19,7 +19,7 @@
# #
import shutil import shutil
from collections.abc import Generator, Iterable from collections.abc import Iterable, Iterator
from pathlib import Path from pathlib import Path
from tempfile import TemporaryDirectory from tempfile import TemporaryDirectory
@ -41,7 +41,7 @@ class Executor(PackageInfo, Cleaner):
trait for common repository update processes 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 check if there is a rebuilt package already

View File

@ -258,7 +258,7 @@ def extract_user() -> str | None:
@contextlib.contextmanager @contextlib.contextmanager
def filelock(path: Path) -> Generator[None, None, None]: def filelock(path: Path) -> Iterator[None]:
""" """
lock on file passed as argument lock on file passed as argument