Drop Python 3.8 support

This addresses a failure in the `py38-dev` tests
caused by markupsafe recently dropping Python 3.8 support.

Changed in this commit:

* Drop Python 3.8 support
* Update CI and tox testing
* Update docs references to Python 3.8
* Remove a Windows / Python 3.8 admonition in the docs
* Address type annotations
* Incorporate style fixes

Still to do:

* `src/flask/sessions.py` contains these comments:

  > TODO generic when Python > 3.8

  This TODO should now be unblocked.
This commit is contained in:
Kurt McKee 2024-10-16 18:12:00 -05:00
parent dffe303482
commit 5796f50315
No known key found for this signature in database
GPG key ID: 64713C0B5BA8E1C2
9 changed files with 22 additions and 29 deletions

View file

@ -23,12 +23,6 @@ method in views that inherit from the :class:`flask.views.View` class, as
well as all the HTTP method handlers in views that inherit from the
:class:`flask.views.MethodView` class.
.. admonition:: Using ``async`` on Windows on Python 3.8
Python 3.8 has a bug related to asyncio on Windows. If you encounter
something like ``ValueError: set_wakeup_fd only works in main thread``,
please upgrade to Python 3.9.
.. admonition:: Using ``async`` with greenlet
When using gevent or eventlet to serve an application or patch the