This commit is contained in:
birdi 2019-08-12 14:16:05 +03:00
parent e1cd68d4d3
commit 9ea22a29fc
2 changed files with 4 additions and 9 deletions

View file

@ -1,7 +1,3 @@
"""
Source: https://stackoverflow.com/questions/2536307/decorators-in-the-python-standard-lib-deprecated-specifically
"""
import functools import functools
import inspect import inspect
import warnings import warnings
@ -13,6 +9,8 @@ def deprecated(reason):
This is a decorator which can be used to mark functions This is a decorator which can be used to mark functions
as deprecated. It will result in a warning being emitted as deprecated. It will result in a warning being emitted
when the function is used. when the function is used.
Source: https://stackoverflow.com/questions/2536307/decorators-in-the-python-standard-lib-deprecated-specifically
""" """
if isinstance(reason, str): if isinstance(reason, str):

View file

@ -1,8 +1,5 @@
========== ==========
Deprecated Deprecated
========== ==========
.. literalinclude:: ../../../aiogram/utils/deprecated.py .. automodule:: aiogram.utils.deprecated
:caption: deprecated.py :members:
:language: python3
:linenos: