1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Pycharm does weird stuff

This commit is contained in:
Steffo 2019-04-10 16:03:04 +02:00
parent bcecf28056
commit f41bfb65c0

View file

@ -586,6 +586,8 @@ def cmd_bridge(bot: telegram.Bot, update: telegram.Update):
reply(bot, update, strings.BRIDGE.SUCCESS) 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]: def parse_timestring(timestring: str) -> typing.Union[datetime.timedelta, datetime.datetime]:
# Unix time # Unix time
try: try:
@ -634,6 +636,8 @@ def parse_timestring(timestring: str) -> typing.Union[datetime.timedelta, dateti
raise ValueError("Nothing was found.") raise ValueError("Nothing was found.")
# Pycharm does weird stuff ep 3
# noinspection PyTypeChecker
@command @command
@database_access @database_access
def cmd_newevent(bot: telegram.Bot, update: telegram.Update, session: db.Session): def cmd_newevent(bot: telegram.Bot, update: telegram.Update, session: db.Session):