Fix some IDE warnings, mostly around type safety on the Python side

This commit is contained in:
Ian Renton
2026-06-19 21:33:46 +01:00
parent 05ac652cee
commit edb2641f76
42 changed files with 319 additions and 187 deletions

View File

@@ -11,14 +11,14 @@ class SIGRef:
# SIG that this reference is in, e.g. "POTA".
sig: str
# Name of the reference, e.g. "Null Country Park", if known.
name: str = None
name: str | None = None
# URL to look up more information about the reference, if known.
url: str = None
url: str | None = None
# Latitude of the reference, if known.
latitude: float = None
latitude: float | None = None
# Longitude of the reference, if known.
longitude: float = None
longitude: float | None = None
# Maidenhead grid reference of the reference, if known.
grid: str = None
grid: str | None = None
# Activation score. SOTA only
activation_score: int = None
activation_score: int | None = None