diff --git a/CHANGES.rst b/CHANGES.rst index 4e43e958..d2b4cfe1 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,14 @@ Unreleased - Remove previously deprecated code: ``__version__``. :pr:`5648` +Version 3.1.1 +------------- + +Unreleased + +- Fix type hint for `cli_runner.invoke`. :issue:`5645` + + Version 3.1.0 ------------- diff --git a/docs/conf.py b/docs/conf.py index 25b8f004..a7b8f919 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -62,6 +62,9 @@ html_logo = "_static/flask-vertical.png" html_title = f"Flask Documentation ({version})" html_show_sourcelink = False +gettext_uuid = True +gettext_compact = False + # Local Extensions ----------------------------------------------------- diff --git a/src/flask/testing.py b/src/flask/testing.py index 602b773b..a62c4836 100644 --- a/src/flask/testing.py +++ b/src/flask/testing.py @@ -10,6 +10,7 @@ from urllib.parse import urlsplit import werkzeug.test from click.testing import CliRunner +from click.testing import Result from werkzeug.test import Client from werkzeug.wrappers import Request as BaseRequest @@ -273,7 +274,7 @@ class FlaskCliRunner(CliRunner): def invoke( # type: ignore self, cli: t.Any = None, args: t.Any = None, **kwargs: t.Any - ) -> t.Any: + ) -> Result: """Invokes a CLI command in an isolated environment. See :meth:`CliRunner.invoke ` for full method documentation. See :ref:`testing-cli` for examples.