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
+2 -2
View File
@@ -21,7 +21,7 @@ all_images_by_type = {}
class Result():
def __init__(self, typ: str, fn: str, tag: str = None, requested: list = []):
def __init__(self, typ: str, fn: str, tag: str | None = None, requested: list = []):
self.type = typ
self.input = fn
self.output = ''
@@ -144,7 +144,7 @@ def upscale_restore_image(res: Result, upscale: bool = False):
return res
def caption_image(res: Result, tag: str = None):
def caption_image(res: Result, tag: str | None = None):
caption = ''
tags = []
for model in options.process.caption_model: