From 1bca435d740f1c279efa2113e1ec9d59edc995b8 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 28 Dec 2020 15:26:34 +0200 Subject: [PATCH] Workaround typing issue. --- etebase_fastapi/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etebase_fastapi/utils.py b/etebase_fastapi/utils.py index 5e45db7..7280018 100644 --- a/etebase_fastapi/utils.py +++ b/etebase_fastapi/utils.py @@ -68,4 +68,7 @@ PERMISSIONS_READWRITE = PERMISSIONS_READ + [Depends(x) for x in app_settings.API response_model_dict = {"model": HttpErrorOut} -permission_responses = {401: response_model_dict, 403: response_model_dict} +permission_responses: t.Dict[t.Union[int, str], t.Dict[str, t.Any]] = { + 401: response_model_dict, + 403: response_model_dict, +}