feat: NoteStateから プロパティ is_watching を削除

feat/v13/notes
yupix 10 months ago
parent 2e6629da8e
commit 43eaa45add
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -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):

@ -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]):

Loading…
Cancel
Save