From 71e4a23f02d146f29cd859e9895a2f06314b4508 Mon Sep 17 00:00:00 2001 From: Trey Moen Date: Tue, 20 May 2025 16:13:53 -0700 Subject: [PATCH] lint --- system/hardware/tici/esim.py | 8 ++++---- system/hardware/tici/tests/test_esim.py | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/system/hardware/tici/esim.py b/system/hardware/tici/esim.py index b7cb96d1dc..2aae437021 100755 --- a/system/hardware/tici/esim.py +++ b/system/hardware/tici/esim.py @@ -24,7 +24,7 @@ class LPA2: self.timeout_sec = 45 - def list_profiles(self): + def list_profiles(self) -> list[dict[str, str]]: """ List all profiles on the eUICC. """ @@ -43,7 +43,7 @@ class LPA2: return profiles - def get_active_profile(self) -> dict | None: + def get_active_profile(self) -> dict[str, str] | None: """ Get the active profile on the eUICC. """ @@ -53,7 +53,7 @@ class LPA2: return profile return None - def list_notifications(self) -> list[dict]: + def list_notifications(self) -> list[dict[str, str]]: """ List notifications from the LPA. """ @@ -136,7 +136,7 @@ class LPA2: self.validate_profile_exists(iccid) self.validate_successful(self._invoke('profile', 'nickname', iccid, nickname)) - def validate_profile_exists(self, iccid: str) -> dict: + def validate_profile_exists(self, iccid: str) -> None: """ Validate that the profile exists on the eUICC. """ diff --git a/system/hardware/tici/tests/test_esim.py b/system/hardware/tici/tests/test_esim.py index bf1921cd89..7b1488729b 100644 --- a/system/hardware/tici/tests/test_esim.py +++ b/system/hardware/tici/tests/test_esim.py @@ -1,5 +1,4 @@ import pytest -import time from openpilot.system.hardware import TICI from openpilot.system.hardware.tici.esim import LPA2, LPAProfileNotFoundError