From 3c6da6a49a63c6dbd91ede8057ed1aa2526efaf4 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Wed, 22 Feb 2023 21:40:21 +0400 Subject: [PATCH] Type hint for the list in errors.py --- app/paths/errors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/paths/errors.py b/app/paths/errors.py index d2de3c8..9c1a354 100644 --- a/app/paths/errors.py +++ b/app/paths/errors.py @@ -1,6 +1,7 @@ """Custom error pages for FastAPI app""" from pathlib import Path +from typing import List from fastapi import Request, Response from fastapi import HTTPException @@ -10,7 +11,7 @@ from .. import respond from .. import common # Add other HTTP error codes -codes = [404, 500] +codes: List[int] = [404, 500] class ErrorsPaths(Paths):