Commit 1a026a6
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 #11 parent 66c8d34 commit 1a026a6
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments