feat!: ClientFavoriteActionsの対象のIDを指定する引数を削除 #140

develop
yupix 3 months ago
parent a217f3d976
commit 8077e2adf5
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -50,30 +50,22 @@ class ClientFavoriteActions(SharedFavoriteActions):
self.__note_id: str = note_id
@override
async def create(self, *, note_id: str | None = None) -> bool:
note_id = note_id or self.__note_id
return await super().create(note_id=note_id)
async def create(self) -> bool:
return await super().create(note_id=self.__note_id)
@deprecated
@override
async def add(self, *, note_id: str | None = None) -> bool:
note_id = note_id or self.__note_id
return await super().create(note_id=note_id)
async def add(self) -> bool:
return await super().create(note_id=self.__note_id)
@override
async def delete(self, *, note_id: str | None = None) -> bool:
note_id = note_id or self.__note_id
return await super().delete(note_id=note_id)
async def delete(self) -> bool:
return await super().delete(note_id=self.__note_id)
@deprecated
@override
async def remove(self, *, note_id: str | None = None) -> bool:
note_id = note_id or self.__note_id
return await super().delete(note_id=note_id)
async def remove(self) -> bool:
return await super().delete(note_id=self.__note_id)
class FavoriteActions(SharedFavoriteActions):

Loading…
Cancel
Save