From 6a1c871f7fa8ee3ea8c0d02fd44450671f7d13ba Mon Sep 17 00:00:00 2001 From: mingrammer Date: Thu, 7 Nov 2024 11:14:34 +0900 Subject: [PATCH] fix: keep the backward compatability for type hint --- diagrams/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diagrams/__init__.py b/diagrams/__init__.py index 5031c7dc1..7b6d24618 100644 --- a/diagrams/__init__.py +++ b/diagrams/__init__.py @@ -82,7 +82,7 @@ def __init__( filename: str = "", direction: str = "LR", curvestyle: str = "ortho", - outformat: str | list[str] = "png", + outformat: Union[str, list[str]] = "png", autolabel: bool = False, show: bool = True, strict: bool = False,