Skip to content

Commit 7f0fdaf

Browse files
committed
Type-annotate prepend_root
1 parent 5db63be commit 7f0fdaf

File tree

1 file changed

+1
-2
lines changed
  • src/pip/_internal/operations/install

1 file changed

+1
-2
lines changed

src/pip/_internal/operations/install/legacy.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ def write_installed_files_from_setuptools_record(
2929
root: Optional[str],
3030
req_description: str,
3131
) -> None:
32-
def prepend_root(path):
33-
# type: (str) -> str
32+
def prepend_root(path: str) -> str:
3433
if root is None or not os.path.isabs(path):
3534
return path
3635
else:

0 commit comments

Comments
 (0)