Skip to content
This repository was archived by the owner on May 28, 2022. It is now read-only.

Commit 708bdac

Browse files
committed
chore: added typing hint
1 parent 7ed4103 commit 708bdac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mi/note.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ async def create_renote(self) -> Note:
334334

335335
return await self._state.create_renote(self.id)
336336

337-
async def get_replies(self, since_id: Optional[str] = None, until_id: Optional[str] = None, limit: int = 10):
337+
async def get_replies(self, since_id: Optional[str] = None, until_id: Optional[str] = None, limit: int = 10) -> List[Note]:
338338
"""
339339
ノートに対する返信を取得します
340340
"""

mi/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ async def get_note(self, note_id) -> Note:
159159
res = await self.http.request(Route('POST', '/api/notes/show'), json={"noteId": note_id}, auth=True, lower=True)
160160
return Note(res, state=self)
161161

162-
async def get_replies(self, note_id: str, since_id: Optional[str] = None, until_id: Optional[str] = None, limit: int = 10,):
162+
async def get_replies(self, note_id: str, since_id: Optional[str] = None, until_id: Optional[str] = None, limit: int = 10,) -> List[Note]:
163163
res = await self.http.request(Route('POST', '/api/notes/replies'), json={"noteId": note_id, "sinceId": since_id, "untilId": until_id, "limit": limit}, auth=True, lower=True)
164164
return [Note(i, state=self) for i in res]
165165

0 commit comments

Comments
 (0)