Autogenerated type safety parameterisation of all methods

This commit is contained in:
Ian Renton
2026-09-20 20:02:19 +01:00
parent 6037e742cc
commit 324dd1414b
132 changed files with 1228 additions and 706 deletions
+5 -2
View File
@@ -1,5 +1,8 @@
from __future__ import annotations
import json
import logging
from typing import Any
import geopandas
from shapely import prepare
@@ -17,10 +20,10 @@ class ITUZoneData(LocalFileStaticDataProvider):
PATH = "datafiles/ituzones.geojson"
def __init__(self, provider_config):
def __init__(self, provider_config: dict[str, Any]) -> None:
super().__init__("ITU Zone Data", provider_config, self.PATH)
def _load_data(self, path):
def _load_data(self, path: str) -> bool:
try:
with open(path) as f:
itu_zone_data = geopandas.GeoDataFrame.from_features(json.load(f)["features"])