removes unused type: ignore statements

This commit is contained in:
Mose Müller 2023-12-05 11:50:06 +01:00
parent 0944a404dc
commit 3c168243bb
2 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ class DataService(rpyc.Service, AbstractDataService):
) )
if hasattr(self, "_state_manager"): if hasattr(self, "_state_manager"):
self._state_manager.save_state() # type: ignore[reportGeneralTypeIssue] self._state_manager.save_state()
def load_DataService_from_JSON( # noqa: N802 def load_DataService_from_JSON( # noqa: N802
self, json_dict: dict[str, Any] self, json_dict: dict[str, Any]

View File

@ -171,7 +171,7 @@ class _ObservableDict(dict[str, Any], ObservableObject):
for key, value in self._original_dict.items(): for key, value in self._original_dict.items():
super().__setitem__(key, self._initialise_new_objects(f"['{key}']", value)) super().__setitem__(key, self._initialise_new_objects(f"['{key}']", value))
def __setitem__(self, key: str, value: Any) -> None: # type: ignore[override] def __setitem__(self, key: str, value: Any) -> None:
if not isinstance(key, str): if not isinstance(key, str):
logger.warning("Converting non-string dictionary key %s to string.", key) logger.warning("Converting non-string dictionary key %s to string.", key)
key = str(key) key = str(key)