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: