Skip to content

Commit

Permalink
fix(api): use correct dict for type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 11, 2023
1 parent ecc82a8 commit 4abf760
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/onnx_web/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from PIL import Image
from struct import pack
from os import environ, makedirs, path, scandir
from typing import Any, Tuple, Union
from typing import Any, Dict, Tuple, Union

import json
import numpy as np
Expand Down Expand Up @@ -89,7 +89,7 @@ def get_and_clamp_int(args, key: str, default_value: int, max_value: int, min_va
return min(max(int(args.get(key, default_value)), min_value), max_value)


def get_from_map(args, key: str, values: dict[str, Any], default: Any):
def get_from_map(args, key: str, values: Dict[str, Any], default: Any):
selected = args.get(key, default)
if selected in values:
return values[selected]
Expand Down

0 comments on commit 4abf760

Please sign in to comment.