mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-12-30 17:31:21 +01:00
combines two lines in _ObservableList.append
This commit is contained in:
@@ -166,8 +166,7 @@ class _ObservableList(ObservableObject, list[Any]):
|
||||
|
||||
def append(self, __object: Any) -> None:
|
||||
self._notify_change_start("")
|
||||
self._initialise_new_objects(f"[{len(self)}]", __object)
|
||||
super().append(__object)
|
||||
super().append(self._initialise_new_objects(f"[{len(self)}]", __object))
|
||||
self._notify_changed("", self)
|
||||
|
||||
def clear(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user