mirror of https://github.com/pallets/flask.git
update `__version__` deprecation (#5649)
This commit is contained in:
commit
ea08f155d8
|
@ -50,7 +50,7 @@ def __getattr__(name: str) -> t.Any:
|
|||
|
||||
warnings.warn(
|
||||
"The '__version__' attribute is deprecated and will be removed in"
|
||||
" Flask 3.1. Use feature detection or"
|
||||
" Flask 3.2. Use feature detection or"
|
||||
" 'importlib.metadata.version(\"flask\")' instead.",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
|
|
Loading…
Reference in New Issue