Add mypy trick

This commit is contained in:
Luna 2020-05-02 01:30:06 -03:00
parent aac0fd10ea
commit b9e0682a05
1 changed files with 3 additions and 0 deletions

View File

@ -443,6 +443,9 @@ class Storage:
return {**row, **dict(vrow)} return {**row, **dict(vrow)}
# this only exists to trick mypy. this codepath is unreachable
raise RuntimeError("Unreachable code path.")
async def get_chan_type(self, channel_id: int) -> int: async def get_chan_type(self, channel_id: int) -> int:
"""Get the channel type integer, given channel ID.""" """Get the channel type integer, given channel ID."""
return await self.db.fetchval( return await self.db.fetchval(