Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 20, 2025
1 parent 93e0925 commit 4363c7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mermaid/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4363c7f

Please sign in to comment.