Skip to content

Commit a67b61f

Browse files
pre-commit-ci[bot]frostming
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b6c4ebb commit a67b61f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pdm/backend/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _build_filter(patterns: Iterable[str]) -> Callable[[str], bool]:
107107

108108

109109
@contextmanager
110-
def cd(path: str | Path) -> Generator[None, None, None]:
110+
def cd(path: str | Path) -> Generator[None]:
111111
_old_cwd = os.getcwd()
112112
os.chdir(path)
113113
try:
@@ -183,7 +183,7 @@ def normalize_file_permissions(st_mode: int) -> int:
183183

184184

185185
@contextlib.contextmanager
186-
def patch_sys_path(path: str | Path) -> Generator[None, None, None]:
186+
def patch_sys_path(path: str | Path) -> Generator[None]:
187187
old_path = sys.path[:]
188188
sys.path.insert(0, str(path))
189189
try:

0 commit comments

Comments
 (0)