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 inspect
|
||||
import warnings
|
||||
|
|
@ -13,6 +9,8 @@ def deprecated(reason):
|
|||
This is a decorator which can be used to mark functions
|
||||
as deprecated. It will result in a warning being emitted
|
||||
when the function is used.
|
||||
|
||||
Source: https://stackoverflow.com/questions/2536307/decorators-in-the-python-standard-lib-deprecated-specifically
|
||||
"""
|
||||
|
||||
if isinstance(reason, str):
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
==========
|
||||
Deprecated
|
||||
==========
|
||||
.. literalinclude:: ../../../aiogram/utils/deprecated.py
|
||||
:caption: deprecated.py
|
||||
:language: python3
|
||||
:linenos:
|
||||
|
||||
.. automodule:: aiogram.utils.deprecated
|
||||
:members:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue