From f21868f2ecd77a128fd480bd5d032c4c5fd31abe Mon Sep 17 00:00:00 2001 From: yupix Date: Sun, 7 Jan 2024 17:46:18 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20Poll=E3=81=AEvote=E3=82=92override?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mipac/actions/poll.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mipac/actions/poll.py b/mipac/actions/poll.py index 98f45d7..285b820 100644 --- a/mipac/actions/poll.py +++ b/mipac/actions/poll.py @@ -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 @@ -69,3 +69,7 @@ class PollActions(ClientPollActions): 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)