Use "typing.List" as an annotation

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
This commit is contained in:
Diego Ramirez 2021-05-25 09:09:27 -05:00 committed by GitHub
parent 0a49dd913f
commit 5ee933aab8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

1
news/10004.trivial.rst Normal file
View File

@ -0,0 +1 @@
Annotate ``typing.List`` into ``tools.tox_pip.pip()``

View File

@ -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',