Skip to content

Commit 95c8e29

Browse files
author
bmartinn
committed
mypy
1 parent 3c4db2c commit 95c8e29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pip/_internal/req/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Pool = None # type: ignore
2020

2121
if MYPY_CHECK_RUNNING:
22-
from typing import Any, List, Sequence, Union
22+
from typing import Any, List, Sequence, Optional
2323

2424
__all__ = [
2525
"RequirementSet", "InstallRequirement",
@@ -60,7 +60,7 @@ def install_given_reqs(
6060
)
6161

6262
# pre allocate installed package names
63-
installed = [None] * len(to_install)
63+
installed = [None] * len(to_install) # type: ignore
6464
install_args = [install_options, global_options, args, kwargs]
6565

6666
if Pool is not None:
@@ -94,7 +94,7 @@ def __single_install(
9494
a_requirement, # type: InstallRequirement
9595
allow_raise=False # type: bool
9696
):
97-
# type: (...) -> Union[InstallationResult, None]
97+
# type: (...) -> Optional[InstallationResult]
9898
"""
9999
Install a single requirement, returns InstallationResult
100100

0 commit comments

Comments
 (0)