Type hint for the list in errors.py

This commit is contained in:
DarkCat09 2023-02-22 21:40:21 +04:00
parent a85619a9fb
commit 3c6da6a49a

View file

@ -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):