Skip to content

Commit

Permalink
feat: NoteStateから プロパティ is_watching を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Nov 24, 2023
1 parent 2e6629d commit 43eaa45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions mipac/models/note.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,9 @@ def __init__(self, data: INoteState) -> None:
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):
Expand Down
3 changes: 1 addition & 2 deletions mipac/types/note.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

class INoteState(TypedDict):
is_favorited: bool
is_watching: bool
is_muted_thread: NotRequired[bool]
is_muted_thread: bool


class INoteUpdated(TypedDict, Generic[T]):
Expand Down

0 comments on commit 43eaa45

Please sign in to comment.