fixes warnings in ProxyClassMixin

This commit is contained in:
Mose Müller 2024-04-04 16:30:26 +02:00
parent 690ecd7317
commit 6335ea21ad

View File

@ -55,11 +55,12 @@ class ProxyList(list[Any]):
class ProxyClassMixin: class ProxyClassMixin:
def __init__(self) -> None: def __init__(self) -> None:
# declare before DataService init to avoid warning messaged
self._observers: dict[str, Any] = {}
self._proxy_getters: dict[str, Callable[..., Any]] = {} self._proxy_getters: dict[str, Callable[..., Any]] = {}
self._proxy_setters: dict[str, Callable[..., Any]] = {} self._proxy_setters: dict[str, Callable[..., Any]] = {}
self._proxy_methods: dict[str, Callable[..., Any]] = {} self._proxy_methods: dict[str, Callable[..., Any]] = {}
# declare before DataService init to avoid warning messaged
self._observers: dict[str, Any] = {}
def _initialise( def _initialise(
self, self,