Skip to content

Commit 1a026a6

Browse files
committed
fix(app): widen _battery_score wired/wireless params to float | None
Follow-up to 66c8d34: scoring._battery_score still declared the charging wattage parameters as `int | None`, so mypy fails on the call site that passes `smartphone.charging_wired_w / charging_wireless_w` (now float). Refs #1
1 parent 66c8d34 commit 1a026a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/services/scoring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ def _camera_score(cameras: list[dict[str, Any]]) -> float | None:
101101

102102
def _battery_score(
103103
battery_mah: int,
104-
wired_w: int | None,
105-
wireless_w: int | None,
104+
wired_w: float | None,
105+
wireless_w: float | None,
106106
process_nm: float | None,
107107
) -> float | None:
108108
if battery_mah <= 0:

0 commit comments

Comments
 (0)