mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-06-24 05:35:10 +00:00
Fix some IDE warnings, mostly around type safety on the Python side
This commit is contained in:
@@ -3,8 +3,8 @@ from core.constants import BANDS
|
||||
HF_BANDS = [b for b in BANDS if b.is_ham_hf]
|
||||
|
||||
|
||||
def _latest(d):
|
||||
return d[max(d.keys())] if d else None
|
||||
def _latest(d) -> float | None:
|
||||
return float(d[max(d.keys())]) if d else None
|
||||
|
||||
|
||||
def compute_band_states(fof2_dict, muf_dict, luf_dict):
|
||||
|
||||
Reference in New Issue
Block a user