Start converting some enum-like strings to proper enums, plus global reformat

This commit is contained in:
Ian Renton
2026-09-02 08:37:13 +01:00
parent 5a6fc19ab5
commit 606cf1be68
24 changed files with 81 additions and 79 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
from dataclasses import dataclass
from core.enums import LocationSourceForCallsign
from core.enums import Continent, LocationSourceForCallsign
@dataclass
@@ -30,14 +30,14 @@ class Callsign:
# Country in which the callsign indicates they are operating
country: str | None = None
# Continent in which the callsign indicates they are operating
continent: str | None = None
continent: Continent | None = None
# DXCC ID in which the callsign indicates they are operating
dxcc_id: int | None = None
# CQ zone in which the callsign indicates they are operating
cq_zone: int | None = None
# ITU zone in which the callsign indicates they are operating
itu_zone: int | None = None
# Location source. This can be "HOME QTH" or "DXCC" depending on which provider gave us a location
# Location source
location_source: LocationSourceForCallsign = LocationSourceForCallsign.NONE
def fully_populated(self):