Skip to content

Commit

Permalink
feat!: ClientFollowActionsの対象のIDを指定する引数を削除 #140
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Jun 18, 2024
1 parent 8077e2a commit da6a14d
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions mipac/actions/follow.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,20 @@ async def create(self, with_replies: bool = MISSING, *, user_id: str) -> Partial
return await super().create(with_replies, user_id=user_id)

@override
async def add(self, *, user_id: str | None = None) -> PartialUser:
user_id = user_id or self.__user_id

return await super().add(user_id=user_id)
async def add(self) -> PartialUser:
return await super().add(user_id=self.__user_id)

@override
async def delete(self, *, user_id: str) -> PartialUser:
return await super().delete(user_id=user_id)
async def delete(self) -> PartialUser:
return await super().delete(user_id=self.__user_id)

@override
async def remove(self, *, user_id: str | None = None) -> PartialUser:
user_id = user_id or self.__user_id

return await super().remove(user_id=user_id)
async def remove(self) -> PartialUser:
return await super().remove(user_id=self.__user_id)

@override
async def invalidate(self, *, user_id: str | None = None) -> PartialUser:
user_id = user_id or self.__user_id

return await super().invalidate(user_id=user_id)
async def invalidate(self) -> PartialUser:
return await super().invalidate(user_id=self.__user_id)


class FollowActions(SharedFollowActions):
Expand Down

0 comments on commit da6a14d

Please sign in to comment.