Skip to content

Commit 7a64f0d

Browse files
committed
Continue fixing types for python 3.8
1 parent f103da7 commit 7a64f0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/getargv/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"""
2525

2626
import sys
27+
from typing import List
2728
if sys.version_info >= (3, 8):
2829
from importlib import metadata
2930
else:
@@ -52,7 +53,7 @@ def as_string(pid: int, encoding: str, skip: int = 0, nuls: bool = False) -> str
5253
"""
5354
return as_bytes(pid, skip, nuls).decode(encoding)
5455

55-
def as_string_list(pid: int, encoding: str) -> list[str]:
56+
def as_string_list(pid: int, encoding: str) -> List[str]:
5657
"""Returns the arguments of a pid as an list of strings decoded using specified encoding.
5758
5859
Parameters:

0 commit comments

Comments
 (0)