Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and frostming committed Sep 18, 2024
1 parent b6c4ebb commit a67b61f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pdm/backend/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a67b61f

Please sign in to comment.