Autogenerated type safety parameterisation of all methods

This commit is contained in:
Ian Renton
2026-09-20 20:16:31 +01:00
parent 324dd1414b
commit 93ea27510f
131 changed files with 20 additions and 283 deletions
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from threading import Event
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import io
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import io
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import io
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from io import BytesIO
from time import sleep
from typing import Any
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from threading import Thread
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Any
from core.enums import ActivityName
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from time import sleep
from typing import Any
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from time import sleep
from typing import Any
@@ -1,5 +1,3 @@
from __future__ import annotations
import re
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Any
from core.enums import ActivityName
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
import logging
from time import sleep
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
from time import sleep
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from time import sleep
from typing import Any
+2 -8
View File
@@ -1,17 +1,11 @@
from __future__ import annotations
from datetime import datetime
from typing import TYPE_CHECKING, Any
from typing import Any
import pytz
from core.data_store import DATA_STORE
from core.live_data_cache import LiveDataCache
if TYPE_CHECKING:
# Deferred to avoid a circular import: data.alert imports core.call_lookup_helper, which imports
# core.data_providers, which imports this module.
from data.alert import Alert
from data.alert import Alert
class AlertProvider:
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime, timedelta
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from threading import Event, Thread
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import date, datetime, time
from typing import Any, cast
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import re
from datetime import datetime
from typing import Any, cast
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime
from typing import Any
@@ -1,5 +1,3 @@
from __future__ import annotations
import re
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Any
from providers.alert.rsgb_ical_alert_provider import RSGBICALAlertProvider
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Any
from providers.alert.rsgb_ical_alert_provider import RSGBICALAlertProvider
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Any
from icalendar import Event
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from typing import Any, cast
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime
from typing import Any
@@ -1,5 +1,3 @@
from __future__ import annotations
from typing import Any
import diskcache
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import gzip
import logging
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from typing import Any
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from threading import Event, Thread
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
import urllib.parse
from datetime import datetime, timedelta
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
import urllib.parse
from datetime import datetime, timedelta
@@ -1,5 +1,3 @@
from __future__ import annotations
import csv
import logging
from datetime import datetime, timedelta, timezone
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from typing import Any
from xml.etree import ElementTree
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from threading import Event, Thread
@@ -1,5 +1,3 @@
from __future__ import annotations
from core.constants import BANDS
from data.band import Band
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime, timedelta, timezone
from threading import Event, Thread
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
import re
from datetime import date, datetime, timezone
@@ -152,11 +150,11 @@ class NOAA3dayForecast(HTTPSolarConditionsProvider):
except (ValueError, IndexError):
continue
date = column_dates[i]
column_date = column_dates[i]
start_dt = datetime(
date.year,
date.month,
date.day,
column_date.year,
column_date.month,
column_date.day,
start_hour,
0,
0,
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from threading import Event, Thread
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
import re
import socket
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
import re
from datetime import datetime
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from threading import Event, Thread
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
import re
from datetime import datetime
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
import re
import socket
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from typing import Any, ClassVar
+2 -8
View File
@@ -1,17 +1,11 @@
from __future__ import annotations
from datetime import datetime
from typing import TYPE_CHECKING, Any
from typing import Any
import pytz
from core.data_store import DATA_STORE
from core.live_data_cache import LiveDataCache
if TYPE_CHECKING:
# Deferred to avoid a circular import: data.spot imports core.call_lookup_helper, which imports
# core.data_providers, which imports this module.
from data.spot import Spot
from data.spot import Spot
class SpotProvider:
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from threading import Event, Lock, Thread
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from typing import Any, ClassVar
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import json
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import re
from datetime import datetime
from typing import Any
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from threading import Event, Thread
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
import re
from datetime import datetime
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import json
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import json
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import json
import logging
from typing import Any
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from threading import Event, Thread
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import json
import logging
from typing import Any
-2
View File
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from typing import Any
@@ -1,5 +1,3 @@
from __future__ import annotations
import logging
from datetime import datetime
from typing import Any
@@ -1,5 +1,3 @@
from __future__ import annotations
from datetime import datetime
from typing import Any