Skip to content

Commit 5ee933a

Browse files
DiddiLeijauranusjr
andauthored
Use "typing.List" as an annotation
Co-authored-by: Tzu-ping Chung <[email protected]>
1 parent 0a49dd9 commit 5ee933a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

news/10004.trivial.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Annotate ``typing.List`` into ``tools.tox_pip.pip()``

tools/tox_pip.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
TOX_PIP_DIR = os.path.join(VIRTUAL_ENV, 'pip')
1010

1111

12-
def pip(args):
13-
# type: (List[str]) -> None
12+
def pip(args: List[str]) -> None:
1413
# First things first, get a recent (stable) version of pip.
1514
if not os.path.exists(TOX_PIP_DIR):
1615
subprocess.check_call([sys.executable, '-m', 'pip',

0 commit comments

Comments
 (0)