Closed greyli closed 7 months ago
The flask.__version__ attr is deprecated and will be removed in the Flask 3.1 version. This PR replaced this attr to importlib.metadata.version.
flask.__version__
importlib.metadata.version
We could remove the use of pkg_resources when we drop the Python 3.7 support.
pkg_resources
Fix: https://github.com/pallets-eco/flask-debugtoolbar/issues/229
The
flask.__version__
attr is deprecated and will be removed in the Flask 3.1 version. This PR replaced this attr toimportlib.metadata.version
.We could remove the use of
pkg_resources
when we drop the Python 3.7 support.Fix: https://github.com/pallets-eco/flask-debugtoolbar/issues/229