Skip to content

Commit

Permalink
fix(mymdc): add return type annotations for bot credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertRosca committed Aug 24, 2024
1 parent 130ef80 commit 3fdf408
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/zulip_write_only_proxy/mymdc.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ async def get_zulip_stream_name(self, proposal_no: int) -> str:

return res

async def get_zulip_bot_credentials(self, proposal_no: int):
async def get_zulip_bot_credentials(
self, proposal_no: int
) -> tuple[str | None, str | None]:
res = await self.get(f"/api/proposals/{proposal_no}/logbook_bot")

res = res.json()
Expand Down

0 comments on commit 3fdf408

Please sign in to comment.