Skip to content

Commit 0ce270d

Browse files
laggardkernelpgjones
authored andcommitted
Update doc about minimal Python version for async support
1 parent 8e589da commit 0ce270d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/async-await.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Using ``async`` and ``await``
77

88
Routes, error handlers, before request, after request, and teardown
99
functions can all be coroutine functions if Flask is installed with the
10-
``async`` extra (``pip install flask[async]``). This allows views to be
10+
``async`` extra (``pip install flask[async]``). It requires Python 3.7+
11+
where ``contextvars.ContextVar`` is available. This allows views to be
1112
defined with ``async def`` and use ``await``.
1213

1314
.. code-block:: python

docs/installation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Python Version
88
We recommend using the latest version of Python. Flask supports Python
99
3.6 and newer.
1010

11+
``async`` support in Flask requires Python 3.7+ for ``contextvars.ContextVar``.
12+
1113

1214
Dependencies
1315
------------

0 commit comments

Comments
 (0)