mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 17:13:56 +00:00
fix docs
This commit is contained in:
parent
e1cd68d4d3
commit
9ea22a29fc
2 changed files with 4 additions and 9 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
==========
|
==========
|
||||||
Deprecated
|
Deprecated
|
||||||
==========
|
==========
|
||||||
.. literalinclude:: ../../../aiogram/utils/deprecated.py
|
.. automodule:: aiogram.utils.deprecated
|
||||||
:caption: deprecated.py
|
:members:
|
||||||
:language: python3
|
|
||||||
:linenos:
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue