From 3a5c2d78f35b4d1f76962683849f705351892d0f Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Thu, 16 Nov 2017 19:06:44 +0200 Subject: [PATCH] Fix doc warnings. --- aiogram/dispatcher/__init__.py | 1 + docs/source/dispatcher.rst | 1 - docs/source/dispatcher/middlewares.rst | 6 ------ 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 docs/source/dispatcher/middlewares.rst diff --git a/aiogram/dispatcher/__init__.py b/aiogram/dispatcher/__init__.py index 3ccbd985..9e2bfbee 100644 --- a/aiogram/dispatcher/__init__.py +++ b/aiogram/dispatcher/__init__.py @@ -877,6 +877,7 @@ class Dispatcher: Get current state for user in chat as context .. code-block:: python3 + with dp.current_state(chat=message.chat.id, user=message.user.id) as state: pass diff --git a/docs/source/dispatcher.rst b/docs/source/dispatcher.rst index 225167a5..4cf301c6 100644 --- a/docs/source/dispatcher.rst +++ b/docs/source/dispatcher.rst @@ -9,4 +9,3 @@ With parts of this package you can manage bot updates. dispatcher/webhook dispatcher/filters dispatcher/handler - dispatcher/middlewares diff --git a/docs/source/dispatcher/middlewares.rst b/docs/source/dispatcher/middlewares.rst deleted file mode 100644 index dba0702f..00000000 --- a/docs/source/dispatcher/middlewares.rst +++ /dev/null @@ -1,6 +0,0 @@ -Middlewares ------------ - -.. automodule:: aiogram.dispatcher.middlewares - :members: - :show-inheritance: