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 Route('POST', '/api/channels/my-favorites'), auth=True
) )
return [Channel(i, client=self._client) for i in res] return [Channel(i, client=self._client) for i in res]

@ -23,7 +23,7 @@ class FileActions(AbstractAction):
self.__client: ClientManager = client self.__client: ClientManager = client
self.__file_id = file_id 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'] IMisskeyDistribution = Literal['ayuskey', 'm544', 'areionskey', 'official']
IMisskeyVersions = Literal[13, 12, 11] IMisskeyVersions = Literal[13, 12, 11]
class ILimits(TypedDict, total=False): class ILimits(TypedDict, total=False):
channel_name: int channel_name: int
channel_description: int channel_description: int

@ -1,4 +1,3 @@
from __future__ import annotations from __future__ import annotations
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
@ -11,11 +10,15 @@ if TYPE_CHECKING:
class ChannelManager(AbstractManager): 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.__channel_id: str | None = channel_id
self.__session: HTTPClient = session self.__session: HTTPClient = session
self.__client: ClientManager = client self.__client: ClientManager = client
@property @property
def action(self) -> ChannelActions: 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: if TYPE_CHECKING:
from mipac.manager import ClientManager from mipac.manager import ClientManager
from mipac.manager.channel import ChannelManager from mipac.manager.channel import ChannelManager
T = TypeVar('T', bound=IChannelLite) 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 return Poll(self._note['poll'], client=self._client) if 'poll' in self._note else None
class NoteTranslateResult: class NoteTranslateResult:
""" """
NoteTranslateResult NoteTranslateResult

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

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

Loading…
Cancel
Save