Skip to content
Myr

Update doc about minimal Python version for async support

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by laggardkernel · committed by Phil Jones · parent 8e589da · Browse files · 2 files+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−1 removed

  • other:+4 added−1 removed

2 files+4 added−1 removed

modified:docs/async-await.rst+2 added-1 removed
5 unmodified lines
6.. versionadded:: 2.078Routes, error handlers, before request, after request, and teardown9functions can all be coroutine functions if Flask is installed with the10``async`` extra (``pip install flask[async]``). This allows views to be10``async`` extra (``pip install flask[async]``). It requires Python 3.7+11where ``contextvars.ContextVar`` is available. This allows views to be12defined with ``async def`` and use ``await``.1314.. code-block:: python15
105 unmodified lines
modified:docs/installation.rst+2 added
6 unmodified lines
78We recommend using the latest version of Python. Flask supports Python93.6 and newer.1011``async`` support in Flask requires Python 3.7+ for ``contextvars.ContextVar``.121314Dependencies15------------1617These distributions will be installed automatically when installing Flask.
118 unmodified lines