fixes Client specific errors when setting proxy attributes / methods

Also ignores mypy errors
This commit is contained in:
Mose Müller 2024-04-08 08:56:14 +02:00
parent 6335ea21ad
commit 73b2355d35

View File

@ -140,7 +140,7 @@ class ProxyClassMixin:
).result() ).result()
return loads(result) return loads(result)
self._proxy_methods[attr_name] = method_proxy dict.__setitem__(self._proxy_methods, attr_name, method_proxy)
def _add_attr_proxy( def _add_attr_proxy(
self, attr_name: str, serialized_object: SerializedObject self, attr_name: str, serialized_object: SerializedObject
@ -172,7 +172,7 @@ class ProxyClassMixin:
if result is not None: if result is not None:
ProxyLoader.loads_proxy(result, self._sio, self._loop) ProxyLoader.loads_proxy(result, self._sio, self._loop)
self._proxy_setters[attr_name] = setter_proxy dict.__setitem__(self._proxy_setters, attr_name, setter_proxy) # type: ignore
def _add_getattr_proxy( def _add_getattr_proxy(
self, attr_name: str, serialized_object: SerializedObject self, attr_name: str, serialized_object: SerializedObject
@ -189,7 +189,7 @@ class ProxyClassMixin:
).result() ).result()
return ProxyLoader.loads_proxy(result, self._sio, self._loop) return ProxyLoader.loads_proxy(result, self._sio, self._loop)
self._proxy_getters[attr_name] = getter_proxy dict.__setitem__(self._proxy_getters, attr_name, getter_proxy) # type: ignore
class ProxyLoader: class ProxyLoader: