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