From 4363c7fa64e59cb2501549740d1e9167b71acc41 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 23:14:05 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mermaid/__main__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mermaid/__main__.py b/mermaid/__main__.py index 242e168..b962b60 100644 --- a/mermaid/__main__.py +++ b/mermaid/__main__.py @@ -53,9 +53,9 @@ def __init__( """ if scale: assert 1 <= scale <= 3, "Scale must be between 1 and 3" - assert any( - [width, height] - ), "One or both of width and height must be provided" + assert any([width, height]), ( + "One or both of width and height must be provided" + ) self.__position: str = position if isinstance(position, str) else position.value self.__height = height if height else None