Skip to content

Commit

Permalink
fix: AdminEmojiActionを複数形に
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed May 31, 2024
1 parent f5b527e commit 4ebe597
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions mipac/actions/admins/emoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from mipac.manager.client import ClientManager


class SharedAdminEmojiAction(AbstractAction):
class SharedAdminEmojiActions(AbstractAction):
def __init__(self, *, session: HTTPClient, client: ClientManager):
self.__session: HTTPClient = session
self.__client: ClientManager = client
Expand Down Expand Up @@ -112,7 +112,7 @@ async def update(
return res


class ClientAdminEmojiAction(SharedAdminEmojiAction):
class ClientAdminEmojiActions(SharedAdminEmojiActions):
def __init__(self, *, emoji_id: str, session: HTTPClient, client: ClientManager):
super().__init__(session=session, client=client)
self.__emoji_id: str = emoji_id
Expand Down Expand Up @@ -156,7 +156,7 @@ async def update(
)


class AdminEmojiAction(SharedAdminEmojiAction):
class AdminEmojiActions(SharedAdminEmojiActions):
def __init__(self, *, session: HTTPClient, client: ClientManager):
super().__init__(session=session, client=client)

Expand Down
10 changes: 5 additions & 5 deletions mipac/manager/admins/emoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@
from typing import TYPE_CHECKING

from mipac.abstract.manager import AbstractManager
from mipac.actions.admins.emoji import AdminEmojiAction, ClientAdminEmojiAction
from mipac.actions.admins.emoji import AdminEmojiActions, ClientAdminEmojiActions
from mipac.http import HTTPClient

if TYPE_CHECKING:
from mipac.client import ClientManager

class ClientAdminEmojiManager(AbstractManager):
def __init__(self, *, emoji_id: str, session: HTTPClient, client: ClientManager):
self.__action: ClientAdminEmojiAction = ClientAdminEmojiAction(emoji_id=emoji_id, session=session, client=client)
self.__action: ClientAdminEmojiActions = ClientAdminEmojiActions(emoji_id=emoji_id, session=session, client=client)

@property
def action(self) -> ClientAdminEmojiAction:
def action(self) -> ClientAdminEmojiActions:
return self.__action

class AdminEmojiManager(AbstractManager):
def __init__(self, session: HTTPClient, client: ClientManager):
self.__action:AdminEmojiAction = AdminEmojiAction(session=session, client=client)
self.__action:AdminEmojiActions = AdminEmojiActions(session=session, client=client)

@property
def action(self) -> AdminEmojiAction:
def action(self) -> AdminEmojiActions:
return self.__action

0 comments on commit 4ebe597

Please sign in to comment.