From c2c24c69b89f8886ec476dcce9698d68bb7303d2 Mon Sep 17 00:00:00 2001 From: "MinJae Kwon (Miti)" Date: Thu, 7 Nov 2024 11:18:50 +0900 Subject: [PATCH] fix: keep the backward compatability for type hint (#1052) --- diagrams/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diagrams/__init__.py b/diagrams/__init__.py index 5031c7dc..7b6d2461 100644 --- a/diagrams/__init__.py +++ b/diagrams/__init__.py @@ -82,7 +82,7 @@ class Diagram: 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,