From e099886eb18621c1f718d747cb62ec9adb413664 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Wed, 23 Mar 2022 03:15:02 -0400 Subject: [PATCH] Minor style changes --- matrix_appservice_kakaotalk/commands/auth.py | 4 ++-- matrix_appservice_kakaotalk/kt/client/client.py | 8 ++++---- .../kt/types/api/__init__.py | 14 +++++++++++--- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/matrix_appservice_kakaotalk/commands/auth.py b/matrix_appservice_kakaotalk/commands/auth.py index df122af..dc38edf 100644 --- a/matrix_appservice_kakaotalk/commands/auth.py +++ b/matrix_appservice_kakaotalk/commands/auth.py @@ -95,7 +95,7 @@ async def enter_password(evt: CommandEvent) -> None: except MForbidden: pass - assert(evt.sender.command_status) + assert evt.sender.command_status req = { "uuid": await evt.sender.get_uuid(), "form": { @@ -125,7 +125,7 @@ async def enter_password(evt: CommandEvent) -> None: async def enter_dv_code(evt: CommandEvent) -> None: - assert(evt.sender.command_status) + assert evt.sender.command_status req: dict = evt.sender.command_status["req"] passcode = evt.content.body await evt.mark_read() diff --git a/matrix_appservice_kakaotalk/kt/client/client.py b/matrix_appservice_kakaotalk/kt/client/client.py index 7b4577d..0e374c9 100644 --- a/matrix_appservice_kakaotalk/kt/client/client.py +++ b/matrix_appservice_kakaotalk/kt/client/client.py @@ -204,7 +204,7 @@ class Client: profile_req_struct = await self._api_user_request_result( ProfileReqStruct, "get_profile", - user_id=user_id.serialize() + user_id=user_id.serialize(), ) return profile_req_struct.profile @@ -219,7 +219,7 @@ class Client: return await self._api_user_request_result( ResultListType(UserInfoUnion), "get_participants", - channel_props=channel_props.serialize() + channel_props=channel_props.serialize(), ) async def get_chats(self, channel_props: ChannelProps, sync_from: Long | None, limit: int | None) -> list[Chatlog]: @@ -228,7 +228,7 @@ class Client: "get_chats", channel_props=channel_props.serialize(), sync_from=sync_from.serialize() if sync_from else None, - limit=limit + limit=limit, ) async def list_friends(self) -> FriendListStruct: @@ -242,7 +242,7 @@ class Client: Chatlog, "send_message", channel_props=channel_props.serialize(), - text=text + text=text, ) diff --git a/matrix_appservice_kakaotalk/kt/types/api/__init__.py b/matrix_appservice_kakaotalk/kt/types/api/__init__.py index 55d6c91..8c63061 100644 --- a/matrix_appservice_kakaotalk/kt/types/api/__init__.py +++ b/matrix_appservice_kakaotalk/kt/types/api/__init__.py @@ -13,6 +13,14 @@ # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . -""" -from .auth_api_client import * -""" +##from .web_client import * +##from .xvc import * # as xvc +#from .struct import * # as struct +#from .auth_api_client import * +##from .service_api_client import * +##from .oauth_api_client import * +##from .attachment_api_client import * +##from .open_upload_api_client import * +##from .web_api_util import * # as webApiUtil +##from .header_util import * # as headerUtil +##from .service_api_util import * # as serviceApiUtil