From f41bfb65c08aeeb08611d8e70bc7e48c9fc33255 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 10 Apr 2019 16:03:04 +0200 Subject: [PATCH] Pycharm does weird stuff --- telegrambot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/telegrambot.py b/telegrambot.py index 9be7d6f3..f769dd6e 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -586,6 +586,8 @@ def cmd_bridge(bot: telegram.Bot, update: telegram.Update): reply(bot, update, strings.BRIDGE.SUCCESS) +# Pycharm does weird stuff ep 3 +# noinspection PyTypeChecker def parse_timestring(timestring: str) -> typing.Union[datetime.timedelta, datetime.datetime]: # Unix time try: @@ -634,6 +636,8 @@ def parse_timestring(timestring: str) -> typing.Union[datetime.timedelta, dateti raise ValueError("Nothing was found.") +# Pycharm does weird stuff ep 3 +# noinspection PyTypeChecker @command @database_access def cmd_newevent(bot: telegram.Bot, update: telegram.Update, session: db.Session):