From 5ee933aab81273da3691c97f2a6e7016ecbe0ef9 Mon Sep 17 00:00:00 2001 From: Diego Ramirez Date: Tue, 25 May 2021 09:09:27 -0500 Subject: [PATCH] Use "typing.List" as an annotation Co-authored-by: Tzu-ping Chung --- news/10004.trivial.rst | 1 + tools/tox_pip.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 news/10004.trivial.rst diff --git a/news/10004.trivial.rst b/news/10004.trivial.rst new file mode 100644 index 000000000..128cf866d --- /dev/null +++ b/news/10004.trivial.rst @@ -0,0 +1 @@ +Annotate ``typing.List`` into ``tools.tox_pip.pip()`` diff --git a/tools/tox_pip.py b/tools/tox_pip.py index fe7621342..6a0e2dae9 100644 --- a/tools/tox_pip.py +++ b/tools/tox_pip.py @@ -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',