Refactor aiogram/utils/auth_widget.py

+ fix check auth widget token in BaseBot, fix tests
This commit is contained in:
Suren Khorenyan 2019-08-16 22:33:19 +03:00
parent 9b2971a525
commit 7863f052d9
6 changed files with 103 additions and 46 deletions

View file

@ -1,10 +1,11 @@
import functools
import asyncio
import inspect
import warnings
import asyncio
import functools
from typing import Callable
def deprecated(reason):
def deprecated(reason) -> Callable:
"""
This is a decorator which can be used to mark functions
as deprecated. It will result in a warning being emitted