Skip to content

Commit

Permalink
More signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
singiamtel committed Nov 25, 2024
1 parent 7c2731a commit a205e89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alibuild_helpers/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def decode_with_fallback(data : Union[bytes, str]) -> str:
return str(data)


def getoutput(command:str, timeout=None) -> str:
def getoutput(command:str, timeout: Union[int, None] = None) -> str:
"""Run command, check it succeeded, and return its stdout as a string."""
proc = Popen(command, shell=isinstance(command, str), stdout=PIPE, stderr=PIPE)
try:
Expand Down
2 changes: 1 addition & 1 deletion alibuild_helpers/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import datetime
from typing import Any

def dieOnError(err: Any, msg) -> None:
def dieOnError(err: Any, msg: str) -> None:
if err:
error("%s", msg)
sys.exit(1)
Expand Down

0 comments on commit a205e89

Please sign in to comment.