Skip to content

Commit

Permalink
✨ feat: NoteUpdatedのreactionに関する型を追加
Browse files Browse the repository at this point in the history
yupix committed Dec 8, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 4f0dcf6 commit e36fad8
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion mipac/types/note.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
from typing import Any, Literal, Optional, TypedDict
from typing import Any, Generic, Literal, Optional, TypedDict, TypeVar

from .drive import IDriveFile
from .emoji import ICustomEmojiLite
from .poll import IPoll
from .user import ILiteUser

T = TypeVar('T')


class INoteUpdated(TypedDict, Generic[T]):
type: Literal['noteUpdated']
body: T


class INoteUpdatedReactionBody(TypedDict):
reaction: str
emoji: ICustomEmojiLite


class INoteUpdatedReaction(TypedDict):
id: str
type: Literal['reacted']
body: INoteUpdatedReactionBody
user_id: str


class GeoPayload(TypedDict):
"""

0 comments on commit e36fad8

Please sign in to comment.