diff --git a/CHANGES.rst b/CHANGES.rst index be6ebdf8..40697332 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,12 @@ +Version 3.2.0 +------------- + +Unreleased + +- Drop support for Python 3.9. :pr:`5730` +- Remove previously deprecated code: ``__version__``. :pr:`5648` + + Version 3.1.1 ------------- diff --git a/pyproject.toml b/pyproject.toml index fcb6b620..ed69b647 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "Flask" -version = "3.1.1" +version = "3.2.0.dev" description = "A simple framework for building complex web applications." readme = "README.md" license = "BSD-3-Clause" diff --git a/src/flask/__init__.py b/src/flask/__init__.py index 1fdc50ce..30dce6fd 100644 --- a/src/flask/__init__.py +++ b/src/flask/__init__.py @@ -1,7 +1,3 @@ -from __future__ import annotations - -import typing as t - from . import json as json from .app import Flask as Flask from .blueprints import Blueprint as Blueprint @@ -41,21 +37,3 @@ from .templating import stream_template as stream_template from .templating import stream_template_string as stream_template_string from .wrappers import Request as Request from .wrappers import Response as Response - -if not t.TYPE_CHECKING: - - def __getattr__(name: str) -> t.Any: - if name == "__version__": - import importlib.metadata - import warnings - - warnings.warn( - "The '__version__' attribute is deprecated and will be removed in" - " Flask 3.2. Use feature detection or" - " 'importlib.metadata.version(\"flask\")' instead.", - DeprecationWarning, - stacklevel=2, - ) - return importlib.metadata.version("flask") - - raise AttributeError(name) diff --git a/uv.lock b/uv.lock index 25177eb7..65d470e1 100644 --- a/uv.lock +++ b/uv.lock @@ -324,7 +324,7 @@ wheels = [ [[package]] name = "flask" -version = "3.1.1" +version = "3.2.0.dev0" source = { editable = "." } dependencies = [ { name = "blinker" },