- def rectified(self) -> Dict[str, Any]: # JSON-able dict
- return {
- "type": "approximate_location",
- "devtime": str(self.devtime),
- "mcc": self.mcc,
- "mnc": self.mnc,
- "base_stations": self.gsm_cells,
- "wifi_aps": self.wifi_aps,
- }
+ def rectified(self) -> SimpleNamespace: # JSON-able dict
+ return SimpleNamespace(
+ type="approximate_location",
+ devtime=str(self.devtime),
+ mcc=self.mcc,
+ mnc=self.mnc,
+ base_stations=self.gsm_cells,
+ wifi_aps=self.wifi_aps,
+ )