From 9ca16560e2314e9b953a5fcc04d19f0fb6b9ab6b Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 25 Oct 2021 15:58:26 -0700 Subject: [PATCH] updated: add a few missing type hints --- selfdrive/updated.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/updated.py b/selfdrive/updated.py index 3865d1228b..a74c8c799d 100755 --- a/selfdrive/updated.py +++ b/selfdrive/updated.py @@ -223,7 +223,7 @@ def finalize_update() -> None: cloudlog.info("done finalizing overlay") -def handle_agnos_update(wait_helper): +def handle_agnos_update(wait_helper: WaitTimeHelper) -> None: from selfdrive.hardware.tici.agnos import flash_agnos_update, get_target_slot_number cur_version = HARDWARE.get_os_version() @@ -282,7 +282,7 @@ def handle_neos_update(wait_helper: WaitTimeHelper) -> None: cloudlog.info(f"NEOS background download successful, took {time.monotonic() - start_time} seconds") -def check_git_fetch_result(fetch_txt): +def check_git_fetch_result(fetch_txt: str) -> bool: err_msg = "Failed to add the host to the list of known hosts (/data/data/com.termux/files/home/.ssh/known_hosts).\n" return len(fetch_txt) > 0 and (fetch_txt != err_msg)