Skip to content

Commit

Permalink
fix support fox python < 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
MainRo committed Oct 25, 2024
1 parent 8e5039b commit 3f9e688
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ebm2onnx/graph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import NamedTuple, Callable, Optional, List, Dict
from typing import NamedTuple, Callable, Optional, List, Dict, Union

import onnx
from ebm2onnx import __version__
Expand Down Expand Up @@ -63,7 +63,7 @@ def from_onnx(model) -> Graph:

def to_onnx(
graph: Graph,
target_opset: Optional[int | Dict[str, int]] = None,
target_opset: Optional[Union[int, Dict[str, int]]] = None,
name: Optional[str] = "ebm",
) -> Graph:
"""Converts a graph to an onnx model.
Expand Down

0 comments on commit 3f9e688

Please sign in to comment.