"""
List expression not allowed in type annotation
Use List[T] to indicate a list type or Union[T1, T2] to indicate a union typePylance
"""
import stat
import subprocess
import sys
-from typing import Optional
+from typing import List, Optional
# logging output stream, setup in main()
log = None
return target
-def main(args: [str]) -> int:
+def main(args: List[str]) -> int:
# setup logging to print to stderr
global log
log.info(f'using generic package version {package_version}')
# list of assets we have uploaded
- assets: [str] = []
+ assets: List[str] = []
for tarball in (f'graphviz-{gv_version}.tar.gz',
f'graphviz-{gv_version}.tar.xz'):