mirror of https://gitlab.com/litecord/litecord.git
Add mypy trick
This commit is contained in:
parent
aac0fd10ea
commit
b9e0682a05
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue