From f02375bfe9120229837080664e94a9ea439b4519 Mon Sep 17 00:00:00 2001 From: "sati.ac" Date: Fri, 8 Sep 2023 15:52:49 +0300 Subject: [PATCH] fix(SatiSocket): revert call fix --- pyproject.toml | 2 +- sati/socket.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e6a4910..5211729 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "sati-ac" -version = "0.1.2" +version = "0.1.3" authors = [ { name="sati.ac", email="sati.ac@proton.me" } ] diff --git a/sati/socket.py b/sati/socket.py index 611d9e9..fb8fae9 100644 --- a/sati/socket.py +++ b/sati/socket.py @@ -109,9 +109,7 @@ class SatiSocket: if msg_type in ( 'auth', 'call' ): return await fut - async def call(self, method: str, data: dict | None = None) -> SatiDict: - if data == None: data = {} - + async def call(self, method: str, data: dict = {}) -> SatiDict: if self.__state == STATE_CONNECTED: resp = await self.__send('call', { 'method': method,