Skip to content

Commit c2c24c6

Browse files
authored
fix: keep the backward compatability for type hint (#1052)
1 parent dd32ab4 commit c2c24c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diagrams/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def __init__(
8282
filename: str = "",
8383
direction: str = "LR",
8484
curvestyle: str = "ortho",
85-
outformat: str | list[str] = "png",
85+
outformat: Union[str, list[str]] = "png",
8686
autolabel: bool = False,
8787
show: bool = True,
8888
strict: bool = False,

0 commit comments

Comments
 (0)