This commit is contained in:
retoor 2025-08-02 13:24:53 +02:00
parent dec19669cd
commit a7ce1059f1

View File

@ -25,10 +25,12 @@ class RPC:
self.__dict__.update(msg)
def __iter__(self):
yield from self.__dict__.get("data", [])
for k in self.__dict__.get("data", []):
yield k
async def __aiter__(self):
yield from self.__dict__.get("data", [])
for k in self.__dict__.get("data", []):
yield k
def __getitem__(self, name):
try: