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