update `__version__` deprecation (#5649)

This commit is contained in:
David Lord 2024-11-23 16:06:37 -08:00 committed by GitHub
commit ea08f155d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ def __getattr__(name: str) -> t.Any:
warnings.warn( warnings.warn(
"The '__version__' attribute is deprecated and will be removed in" "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.", " 'importlib.metadata.version(\"flask\")' instead.",
DeprecationWarning, DeprecationWarning,
stacklevel=2, stacklevel=2,