Type hint for the list in errors.py
This commit is contained in:
parent
a85619a9fb
commit
3c6da6a49a
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue