提交 bbeb7588 authored 作者: Ben Mares's avatar Ben Mares 提交者: Michael Osthege

Add type annotation for get_lines

上级 29757d4f
...@@ -2104,7 +2104,7 @@ class GCC_compiler(Compiler): ...@@ -2104,7 +2104,7 @@ class GCC_compiler(Compiler):
) )
detect_march = False detect_march = False
def get_lines(cmd, parse=True): def get_lines(cmd: list[str] | str, parse: bool = True) -> list[str] | None:
p = subprocess_Popen( p = subprocess_Popen(
cmd, cmd,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论