Skip to content

Commit 6b054f8

Browse files
committed
Merge branch 'stable'
2 parents d5b7a05 + f2674c5 commit 6b054f8

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

CHANGES.rst

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ Unreleased
66
- Remove previously deprecated code: ``__version__``. :pr:`5648`
77

88

9+
Version 3.1.1
10+
-------------
11+
12+
Unreleased
13+
14+
- Fix type hint for `cli_runner.invoke`. :issue:`5645`
15+
16+
917
Version 3.1.0
1018
-------------
1119

docs/conf.py

+3
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
html_title = f"Flask Documentation ({version})"
6363
html_show_sourcelink = False
6464

65+
gettext_uuid = True
66+
gettext_compact = False
67+
6568
# Local Extensions -----------------------------------------------------
6669

6770

src/flask/testing.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import werkzeug.test
1212
from click.testing import CliRunner
13+
from click.testing import Result
1314
from werkzeug.test import Client
1415
from werkzeug.wrappers import Request as BaseRequest
1516

@@ -273,7 +274,7 @@ def __init__(self, app: Flask, **kwargs: t.Any) -> None:
273274

274275
def invoke( # type: ignore
275276
self, cli: t.Any = None, args: t.Any = None, **kwargs: t.Any
276-
) -> t.Any:
277+
) -> Result:
277278
"""Invokes a CLI command in an isolated environment. See
278279
:meth:`CliRunner.invoke <click.testing.CliRunner.invoke>` for
279280
full method documentation. See :ref:`testing-cli` for examples.

0 commit comments

Comments
 (0)