File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 19
19
Pool = None # type: ignore
20
20
21
21
if MYPY_CHECK_RUNNING :
22
- from typing import Any , List , Sequence , Union
22
+ from typing import Any , List , Sequence , Optional
23
23
24
24
__all__ = [
25
25
"RequirementSet" , "InstallRequirement" ,
@@ -60,7 +60,7 @@ def install_given_reqs(
60
60
)
61
61
62
62
# pre allocate installed package names
63
- installed = [None ] * len (to_install )
63
+ installed = [None ] * len (to_install ) # type: ignore
64
64
install_args = [install_options , global_options , args , kwargs ]
65
65
66
66
if Pool is not None :
@@ -94,7 +94,7 @@ def __single_install(
94
94
a_requirement , # type: InstallRequirement
95
95
allow_raise = False # type: bool
96
96
):
97
- # type: (...) -> Union [InstallationResult, None ]
97
+ # type: (...) -> Optional [InstallationResult]
98
98
"""
99
99
Install a single requirement, returns InstallationResult
100
100
You can’t perform that action at this time.
0 commit comments