Merge pull request #68 from yupix/feat/support-more-drive

fix: デフォルト値が入ってない
pull/69/head
yupix 1 year ago committed by GitHub
commit ad11b8a534
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -71,4 +71,3 @@ class ChannelActions(ClientChannelActions):
Route('POST', '/api/channels/my-favorites'), auth=True
)
return [Channel(i, client=self._client) for i in res]

@ -23,7 +23,7 @@ class FileActions(AbstractAction):
self.__client: ClientManager = client
self.__file_id = file_id
async def show_file(self, file_id: str | None, url: str | None) -> File:
async def show_file(self, file_id: str | None = None, url: str | None = None) -> File:
"""
ファイルの情報を取得します

@ -17,6 +17,7 @@ class CacheConfig:
IMisskeyDistribution = Literal['ayuskey', 'm544', 'areionskey', 'official']
IMisskeyVersions = Literal[13, 12, 11]
class ILimits(TypedDict, total=False):
channel_name: int
channel_description: int

@ -1,4 +1,3 @@
from __future__ import annotations
from typing import TYPE_CHECKING
@ -11,11 +10,15 @@ if TYPE_CHECKING:
class ChannelManager(AbstractManager):
def __init__(self, channel_id: str | None = None, *, session: HTTPClient, client: ClientManager):
def __init__(
self, channel_id: str | None = None, *, session: HTTPClient, client: ClientManager
):
self.__channel_id: str | None = channel_id
self.__session: HTTPClient = session
self.__client: ClientManager = client
@property
def action(self) -> ChannelActions:
return ChannelActions(channel_id=self.__channel_id, session=self.__session, client=self.__client)
return ChannelActions(
channel_id=self.__channel_id, session=self.__session, client=self.__client
)

@ -8,7 +8,7 @@ from mipac.utils.format import str_to_datetime
if TYPE_CHECKING:
from mipac.manager import ClientManager
from mipac.manager.channel import ChannelManager
T = TypeVar('T', bound=IChannelLite)

@ -206,7 +206,6 @@ class Note(PartialNote[INote]):
return Poll(self._note['poll'], client=self._client) if 'poll' in self._note else None
class NoteTranslateResult:
"""
NoteTranslateResult

@ -359,5 +359,5 @@ ENDPOINTS = Literal[
'/api/channels/search',
'/api/emoji',
'/api/roles/notes',
'/api/users/update-memo'
'/api/users/update-memo',
]

@ -66,4 +66,5 @@ class Colors:
self.green = '\x1b[92;1m'
self.reset = '\x1b[0m'
COLORS = Colors()

Loading…
Cancel
Save