From 17418ab5bfc4f2a792304073c664e23ee898e837 Mon Sep 17 00:00:00 2001 From: Alexis Rolland Date: Tue, 16 Jun 2026 16:14:48 +0800 Subject: [PATCH] Formatting --- comfy_extras/nodes_audio.py | 12 ++---------- comfy_extras/nodes_images.py | 21 +++------------------ comfy_extras/nodes_video.py | 9 +-------- 3 files changed, 6 insertions(+), 36 deletions(-) diff --git a/comfy_extras/nodes_audio.py b/comfy_extras/nodes_audio.py index 7816cc1e4..647cd65ed 100644 --- a/comfy_extras/nodes_audio.py +++ b/comfy_extras/nodes_audio.py @@ -268,18 +268,10 @@ class SaveAudioAdvanced(IO.ComfyNode): options=[ IO.DynamicCombo.Option("flac", []), IO.DynamicCombo.Option("mp3", [ - IO.Combo.Input( - "quality", - options=["V0", "128k", "320k"], - default="V0", - ), + IO.Combo.Input("quality", options=["V0", "128k", "320k"], default="V0"), ]), IO.DynamicCombo.Option("opus", [ - IO.Combo.Input( - "quality", - options=["64k", "96k", "128k", "192k", "320k"], - default="128k", - ), + IO.Combo.Input("quality", options=["64k", "96k", "128k", "192k", "320k"], default="128k"), ]), ], tooltip="The file format in which to save the audio.", diff --git a/comfy_extras/nodes_images.py b/comfy_extras/nodes_images.py index 4b7e57625..835a1c979 100644 --- a/comfy_extras/nodes_images.py +++ b/comfy_extras/nodes_images.py @@ -1165,26 +1165,11 @@ class SaveImageAdvanced(IO.ComfyNode): "format", options=[ IO.DynamicCombo.Option("png", [ - IO.Combo.Input( - "bit_depth", - options=["8-bit", "16-bit"], - default="8-bit", - advanced=True, - ), - IO.Combo.Input( - "input_color_space", - options=["sRGB"], - default="sRGB", - advanced=True, - ), + IO.Combo.Input("bit_depth", options=["8-bit", "16-bit"], default="8-bit", advanced=True), + IO.Combo.Input("input_color_space", options=["sRGB"], default="sRGB", advanced=True), ]), IO.DynamicCombo.Option("exr", [ - IO.Combo.Input( - "bit_depth", - options=["32-bit float"], - default="32-bit float", - advanced=True, - ), + IO.Combo.Input("bit_depth", options=["32-bit float"], default="32-bit float", advanced=True), IO.Combo.Input( "input_color_space", options=["sRGB", "HDR", "linear"], diff --git a/comfy_extras/nodes_video.py b/comfy_extras/nodes_video.py index 0113bac55..2e13a0ded 100644 --- a/comfy_extras/nodes_video.py +++ b/comfy_extras/nodes_video.py @@ -23,14 +23,7 @@ class SaveWEBM(io.ComfyNode): io.String.Input("filename_prefix", default="ComfyUI"), io.Combo.Input("codec", options=["vp9", "av1"]), io.Float.Input("fps", default=24.0, min=0.01, max=1000.0, step=0.01), - io.Float.Input( - "crf", - default=32.0, - min=0, - max=63.0, - step=1, - tooltip="Higher crf means lower quality with a smaller file size, lower crf means higher quality higher filesize.", - ), + io.Float.Input("crf", default=32.0, min=0, max=63.0, step=1, tooltip="Higher crf means lower quality with a smaller file size, lower crf means higher quality higher filesize."), ], hidden=[io.Hidden.prompt, io.Hidden.extra_pnginfo], is_output_node=True,