From a6001f2bc9b0e68ced6a29bfe14ba1488db1b2cd Mon Sep 17 00:00:00 2001 From: discountchubbs Date: Tue, 25 Nov 2025 14:11:53 -0800 Subject: [PATCH] mypy --- selfdrive/ui/sunnypilot/layouts/settings/models.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/selfdrive/ui/sunnypilot/layouts/settings/models.py b/selfdrive/ui/sunnypilot/layouts/settings/models.py index 5ecd7d02ec..8781959c6a 100644 --- a/selfdrive/ui/sunnypilot/layouts/settings/models.py +++ b/selfdrive/ui/sunnypilot/layouts/settings/models.py @@ -66,14 +66,14 @@ class ModelsLayout(Widget): self.cancel_download_item = button_item(tr("Cancel Download"), tr("Cancel"), "", lambda: ui_state.params.remove("ModelManager_DownloadIndex")) self.lane_turn_value_control = option_item_sp(tr("Adjust Lane Turn Speed"), "LaneTurnValue", 500, 2000, - tr("Set the maximum speed for lane turn desires. Default is 19 mph."), - int(round(100 / CV.MPH_TO_KPH)), None, True, "", style.BUTTON_WIDTH, None, True, - lambda v: f"{int(round(v / 100 * (CV.MPH_TO_KPH if ui_state.params.get_bool('IsMetric') else 1)))} {'km/h' if ui_state.params.get_bool('IsMetric') else 'mph'}") + tr("Set the maximum speed for lane turn desires. Default is 19 mph."), + int(round(100 / CV.MPH_TO_KPH)), None, True, "", style.BUTTON_WIDTH, None, True, + lambda v: f"{int(round(v / 100 * (CV.MPH_TO_KPH if ui_state.params.get_bool('IsMetric') else 1)))} {'km/h' if ui_state.params.get_bool('IsMetric') else 'mph'}") self.lane_turn_desire_toggle = toggle_item_sp(tr("Use Lane Turn Desires"), - tr("If you're driving at 20 mph (32 km/h) or below and have your blinker on, the car will plan a turn in that direction at the nearest drivable path. " + - "This prevents situations (like at red lights) where the car might plan the wrong turn direction."), - callback=lambda s: self.lane_turn_value_control.set_visible(s), param="LaneTurnDesire") + tr("If you're driving at 20 mph (32 km/h) or below and have your blinker on, the car will plan a turn in that direction at the nearest drivable path. " + + "This prevents situations (like at red lights) where the car might plan the wrong turn direction."), + callback=lambda s: self.lane_turn_value_control.set_visible(s), param="LaneTurnDesire") self.delay_control = option_item_sp(tr("Adjust Software Delay"), "LagdToggleDelay", 5, 50, tr("Adjust the software delay when Live Learning Steer Delay is toggled off. The default software delay value is 0.2"),