RUF013 compatibility

This commit is contained in:
awsr
2026-03-20 18:42:44 -07:00
parent 783f20b5d7
commit 8e10ec3fec
21 changed files with 34 additions and 34 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ def generate(x: int, y: int): # pylint: disable=redefined-outer-name
return images
def merge(images: list[Image.Image], horizontal: bool, labels: list[str] = None):
def merge(images: list[Image.Image], horizontal: bool, labels: list[str] | None = None):
rows = 1 if horizontal else len(images)
cols = math.ceil(len(images) / rows)
w = max([i.size[0] for i in images])