mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 00:10:03 +02:00
removes unused type: ignore statements
This commit is contained in:
parent
0944a404dc
commit
3c168243bb
@ -176,7 +176,7 @@ class DataService(rpyc.Service, AbstractDataService):
|
||||
)
|
||||
|
||||
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
|
||||
self, json_dict: dict[str, Any]
|
||||
|
@ -171,7 +171,7 @@ class _ObservableDict(dict[str, Any], ObservableObject):
|
||||
for key, value in self._original_dict.items():
|
||||
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):
|
||||
logger.warning("Converting non-string dictionary key %s to string.", key)
|
||||
key = str(key)
|
||||
|
Loading…
x
Reference in New Issue
Block a user