mirror of https://github.com/pypa/pip
Use "typing.List" as an annotation
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
This commit is contained in:
parent
0a49dd913f
commit
5ee933aab8
|
@ -0,0 +1 @@
|
|||
Annotate ``typing.List`` into ``tools.tox_pip.pip()``
|
|
@ -9,8 +9,7 @@ VIRTUAL_ENV = os.environ['VIRTUAL_ENV']
|
|||
TOX_PIP_DIR = os.path.join(VIRTUAL_ENV, 'pip')
|
||||
|
||||
|
||||
def pip(args):
|
||||
# type: (List[str]) -> None
|
||||
def pip(args: List[str]) -> None:
|
||||
# First things first, get a recent (stable) version of pip.
|
||||
if not os.path.exists(TOX_PIP_DIR):
|
||||
subprocess.check_call([sys.executable, '-m', 'pip',
|
||||
|
|
Loading…
Reference in New Issue