Skip to content

Commit

Permalink
feat!: ClientBlockingActionsの対象のIDを指定する引数を削除 #140
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Jun 18, 2024
1 parent c9e52cc commit 75f96de
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions mipac/actions/blocking.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,12 @@ def __init__(self, user_id: str, *, session: HTTPClient, client: ClientManager):
self.__user_id: str = user_id

@override
async def add(self, *, user_id: str | None = None) -> UserDetailedNotMe | MeDetailed:
user_id = user_id or self.__user_id
return await super().add(user_id=user_id)
async def add(self) -> UserDetailedNotMe | MeDetailed:
return await super().add(user_id=self.__user_id)

@override
async def remove(self, *, user_id: str | None = None) -> UserDetailedNotMe | MeDetailed:
user_id = user_id or self.__user_id
return await super().remove(user_id=user_id)
async def remove(self) -> UserDetailedNotMe | MeDetailed:
return await super().remove(user_id=self.__user_id)


class BlockingActions(SharedBlockingActions):
Expand Down

0 comments on commit 75f96de

Please sign in to comment.