forked from orbit-oss/flask
allow TypedDict as a response value
This commit is contained in:
parent
76a6b4f2b5
commit
4bf7415a96
3 changed files with 15 additions and 1 deletions
|
|
@ -11,7 +11,8 @@ ResponseValue = t.Union[
|
|||
str,
|
||||
bytes,
|
||||
t.List[t.Any],
|
||||
t.Dict[str, t.Any],
|
||||
# Only dict is actually accepted, but Mapping allows for TypedDict.
|
||||
t.Mapping[str, t.Any],
|
||||
t.Iterator[str],
|
||||
t.Iterator[bytes],
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue