Fix type annotation

This commit is contained in:
Jonas Schäfer
2021-03-20 12:36:06 +01:00
parent 2506810b90
commit 02ed390cd2

View File

@@ -53,7 +53,9 @@ async def view_old(id_: str) -> quart.Response:
@bp.route("/<id_>/")
async def view(id_: str) -> typing.Union[quart.Response, str]:
async def view(id_: str) -> typing.Union[quart.Response,
typing.Tuple[str, int],
str]:
try:
invite = await client.get_public_invite_by_id(id_)
except aiohttp.ClientResponseError as exc: