mirror of https://gitlab.com/litecord/litecord.git
storage: fix typing for get_chan_type
This commit is contained in:
parent
7e79abf344
commit
ddf78d94e4
|
|
@ -447,7 +447,7 @@ class Storage:
|
|||
# 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) -> Optional[int]:
|
||||
"""Get the channel type integer, given channel ID."""
|
||||
return await self.db.fetchval(
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue