From 4080a11a2cab1062ae78c69ca59640c4bdf4b846 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Aug 2024 23:13:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pdm/backend/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pdm/backend/utils.py b/src/pdm/backend/utils.py index 688a4ae..986c8c0 100644 --- a/src/pdm/backend/utils.py +++ b/src/pdm/backend/utils.py @@ -107,7 +107,7 @@ def _build_filter(patterns: Iterable[str]) -> Callable[[str], bool]: @contextmanager -def cd(path: str | Path) -> Generator[None, None, None]: +def cd(path: str | Path) -> Generator[None]: _old_cwd = os.getcwd() os.chdir(path) try: @@ -183,7 +183,7 @@ def normalize_file_permissions(st_mode: int) -> int: @contextlib.contextmanager -def patch_sys_path(path: str | Path) -> Generator[None, None, None]: +def patch_sys_path(path: str | Path) -> Generator[None]: old_path = sys.path[:] sys.path.insert(0, str(path)) try: