From ddf78d94e4c0368ecca328fb464c7dcf01ecafed Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 5 Sep 2021 23:30:19 -0300 Subject: [PATCH] storage: fix typing for get_chan_type --- litecord/storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/storage.py b/litecord/storage.py index 65367dc..3f548b5 100644 --- a/litecord/storage.py +++ b/litecord/storage.py @@ -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( """