mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-01-16 11:13:43 +00:00
remove generators
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user