From 43eaa45add495b0c50d32ecce354cb5f97f8a9a3 Mon Sep 17 00:00:00 2001 From: yupix Date: Sat, 25 Nov 2023 08:59:11 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20NoteState=E3=81=8B=E3=82=89=20=E3=83=97?= =?UTF-8?q?=E3=83=AD=E3=83=91=E3=83=86=E3=82=A3=20is=5Fwatching=20?= =?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mipac/models/note.py | 6 +----- mipac/types/note.py | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/mipac/models/note.py b/mipac/models/note.py index 7a7a26c..bf84cd3 100644 --- a/mipac/models/note.py +++ b/mipac/models/note.py @@ -39,13 +39,9 @@ class NoteState(AbstractModel): def is_favorite(self) -> bool: return self.__data["is_favorited"] - @property - def is_watching(self) -> bool: - return self.__data["is_watching"] - @property def is_muted_thread(self) -> bool: - return self.__data.get("is_muted_thread", False) + return self.__data["is_muted_thread"] class NoteDeleted(AbstractModel): diff --git a/mipac/types/note.py b/mipac/types/note.py index 4e92371..4a2134c 100644 --- a/mipac/types/note.py +++ b/mipac/types/note.py @@ -13,8 +13,7 @@ INoteVisibility = Literal["public", "home", "followers", "specified"] class INoteState(TypedDict): is_favorited: bool - is_watching: bool - is_muted_thread: NotRequired[bool] + is_muted_thread: bool class INoteUpdated(TypedDict, Generic[T]):