storage: fix typing for get_chan_type

This commit is contained in:
Luna 2021-09-05 23:30:19 -03:00
parent 7e79abf344
commit ddf78d94e4
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ class Storage:
# this only exists to trick mypy. this codepath is unreachable # this only exists to trick mypy. this codepath is unreachable
raise RuntimeError("Unreachable code path.") raise RuntimeError("Unreachable code path.")
async def get_chan_type(self, channel_id: int) -> int: async def get_chan_type(self, channel_id: int) -> Optional[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(
""" """