From b9e0682a05abf99ddc2a65cd9a07940f37e911eb Mon Sep 17 00:00:00 2001 From: Luna Date: Sat, 2 May 2020 01:30:06 -0300 Subject: [PATCH] Add mypy trick --- litecord/storage.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litecord/storage.py b/litecord/storage.py index 8b97415..c2790b1 100644 --- a/litecord/storage.py +++ b/litecord/storage.py @@ -443,6 +443,9 @@ class Storage: 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: """Get the channel type integer, given channel ID.""" return await self.db.fetchval(