File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ Unreleased
6
6
- Fix type hint for `cli_runner.invoke `. :issue: `5645 `
7
7
- ``flask --help `` loads the app and plugins first to make sure all commands
8
8
are shown. :issue: 5673`
9
+ - Mark sans-io base class as being able to handle views that return
10
+ ``AsyncIterable ``. This is not accurate for Flask, but makes typing easier
11
+ for Quart. :pr: `5659 `
9
12
10
13
11
14
Version 3.1.0
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
+ import collections .abc as cabc
3
4
import typing as t
4
5
5
6
if t .TYPE_CHECKING : # pragma: no cover
17
18
t .Mapping [str , t .Any ],
18
19
t .Iterator [str ],
19
20
t .Iterator [bytes ],
21
+ cabc .AsyncIterable [str ], # for Quart, until App is generic.
22
+ cabc .AsyncIterable [bytes ],
20
23
]
21
24
22
25
# the possible types for an individual HTTP header
You can’t perform that action at this time.
0 commit comments