Skip to content

Commit

Permalink
fix(api): correct dict types for 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Apr 24, 2023
1 parent 477fb69 commit 7caaa9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/onnx_web/worker/command.py
@@ -1,4 +1,4 @@
from typing import Any, Callable
from typing import Any, Callable, Dict


class ProgressCommand:
Expand Down Expand Up @@ -31,15 +31,15 @@ class JobCommand:
name: str
fn: Callable[..., None]
args: Any
kwargs: dict[str, Any]
kwargs: Dict[str, Any]

def __init__(
self,
name: str,
device: str,
fn: Callable[..., None],
args: Any,
kwargs: dict[str, Any],
kwargs: Dict[str, Any],
):
self.device = device
self.name = name
Expand Down

0 comments on commit 7caaa9e

Please sign in to comment.