Fix minor type issue in API.
This commit is contained in:
parent
2f6e116405
commit
ef4a43be0e
@ -1,7 +1,7 @@
|
||||
import copy
|
||||
import json
|
||||
import traceback
|
||||
from typing import Any, Callable, Dict
|
||||
from typing import Any, Callable, Dict, List
|
||||
from flask import Flask, abort, request, Response
|
||||
from functools import wraps
|
||||
|
||||
@ -16,7 +16,7 @@ app = Flask(
|
||||
)
|
||||
config = Config()
|
||||
|
||||
SUPPORTED_VERSIONS = ['v1']
|
||||
SUPPORTED_VERSIONS: List[str] = ['v1']
|
||||
|
||||
|
||||
def jsonify_response(data: Dict[str, Any], code: int=200) -> Response:
|
||||
|
Loading…
x
Reference in New Issue
Block a user