Skip to content

Commit

Permalink
feat: Pollのvoteをoverrideするように
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Jan 7, 2024
1 parent 16fc12e commit f21868f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mipac/actions/poll.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, override

from mipac.abstract.action import AbstractAction
from mipac.errors.base import ParameterError
Expand Down Expand Up @@ -69,3 +69,7 @@ async def get_all_recommendation(self, offset: int = 0):
yield Note(note, client=self._client)
if pagination.is_final:
break

@override
async def vote(self, note_id: str, choice: int) -> bool:
return await super().vote(note_id=note_id, choice=choice)

0 comments on commit f21868f

Please sign in to comment.