Skip to content
Myr

update `__version__` deprecation

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

authored by David Lord · committed by David Lord · parent dcbe86b · Browse files · 1 file+1 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

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/flask/__init__.py+1 added-1 removed
48 unmodified lines
49 import warnings5051 warnings.warn(52 "The '__version__' attribute is deprecated and will be removed in"53 " Flask 3.1. Use feature detection or"53 " Flask 3.2. Use feature detection or"54 " 'importlib.metadata.version(\"flask\")' instead.",55 DeprecationWarning,56 stacklevel=2,57 )
3 unmodified lines