Minor style changes

This commit is contained in:
Andrew Ferrazzutti 2022-03-23 03:15:02 -04:00
parent 2d9ae53d89
commit e099886eb1
3 changed files with 17 additions and 9 deletions

View File

@ -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()

View File

@ -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,
)

View File

@ -13,6 +13,14 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
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