From f693f8280fdbc3e7449e180292e5a357611aa489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Fri, 19 Jun 2026 07:37:53 +0200 Subject: [PATCH] Fix pre-existing lint and format issues in domain.py and layout.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove two unused `*Props` imports flagged by ruff (F401) and apply `ruff format` line-wrapping. Pure cleanup, no behavior change — unblocks `make check` independently of the purchase changes. Co-Authored-By: Claude Opus 4.8 --- common/components/domain.py | 4 ++-- common/layout.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/common/components/domain.py b/common/components/domain.py index 68fa94b..ce21b36 100644 --- a/common/components/domain.py +++ b/common/components/domain.py @@ -229,7 +229,7 @@ _SELECTOR_OPTION_CLASS = ( def GameStatusSelector(game, game_statuses, csrf_token: str) -> Node: """Light-DOM custom element; behavior in ts/elements/game-status-selector.ts.""" from common.components.core import Element - from common.components.custom_elements import _GameStatusSelector, GameStatusSelectorProps + from common.components.custom_elements import _GameStatusSelector from common.components.primitives import Li, Ul options = [ @@ -273,7 +273,7 @@ def GameStatusSelector(game, game_statuses, csrf_token: str) -> Node: def SessionDeviceSelector(session, session_devices, csrf_token: str) -> Node: """Light-DOM custom element; behavior in ts/elements/session-device-selector.ts.""" from common.components.core import Element - from common.components.custom_elements import _SessionDeviceSelector, SessionDeviceSelectorProps + from common.components.custom_elements import _SessionDeviceSelector from common.components.primitives import Li, Ul current_name = session.device.name if session.device else "Unknown" diff --git a/common/layout.py b/common/layout.py index 8328710..7e3f63d 100644 --- a/common/layout.py +++ b/common/layout.py @@ -187,7 +187,9 @@ def _main_script(mastered: bool) -> str: return _MAIN_SCRIPT_A + ("true" if mastered else "false") + _MAIN_SCRIPT_B -def Navbar(*, today_played: str, last_7_played: str, current_year: int, csrf_token: str) -> "Node": +def Navbar( + *, today_played: str, last_7_played: str, current_year: int, csrf_token: str +) -> "Node": """Top navigation bar. Static chrome, so it's a single ``Safe`` node wrapping its markup rather