chore: format

pull/109/head
yupix 7 months ago
parent 93028ab1a0
commit 49ad01d497
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -381,7 +381,7 @@ class FileActions(ClientFileActions):
elif isinstance(file, bytes): elif isinstance(file, bytes):
file_byte = io.BytesIO(file) file_byte = io.BytesIO(file)
else: else:
file_byte = open(file, 'rb') file_byte = open(file, "rb")
data = { data = {
"folderId": folder_id, "folderId": folder_id,

@ -85,6 +85,7 @@ class FileProperties:
""" """
return self.__raw_properties.get(key) return self.__raw_properties.get(key)
class Folder: class Folder:
def __init__(self, raw_folder: IFolder, client: ClientManager): def __init__(self, raw_folder: IFolder, client: ClientManager):
self.__raw_folder: IFolder = raw_folder self.__raw_folder: IFolder = raw_folder

@ -28,6 +28,7 @@ class EmojiPayload(TypedDict):
url: str | None url: str | None
license: str | None # v13 only license: str | None # v13 only
class IEmojiSimple(TypedDict): class IEmojiSimple(TypedDict):
aliaces: list[str] aliaces: list[str]
name: str name: str
@ -36,6 +37,7 @@ class IEmojiSimple(TypedDict):
is_sensitive: NotRequired[bool] is_sensitive: NotRequired[bool]
role_ids_that_can_be_used_this_emoji_as_reaction: NotRequired[list[str]] role_ids_that_can_be_used_this_emoji_as_reaction: NotRequired[list[str]]
class IEmojiDetailed(TypedDict): class IEmojiDetailed(TypedDict):
id: str id: str
aliaces: list[str] aliaces: list[str]

Loading…
Cancel
Save