blob: f5182d71242efce793f8de38fd3185d07d86741e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from typing import Any, Tuple, Union
from flask import Response as FlaskResponse
from werkzeug.wrappers import Response as WerkzeugResponse
# type to represent any of the used/plausible return types
AnyResponse = Union[
FlaskResponse,
str,
Tuple[str, int],
WerkzeugResponse,
Tuple[FlaskResponse, int],
Tuple[WerkzeugResponse, int],
]
|