From b8040e4ab9513d41ac2a62e07c309b7be277f9ff Mon Sep 17 00:00:00 2001 From: AUTOMATIC1111 <16777216c@gmail.com> Date: Sun, 3 Dec 2023 17:10:13 +0300 Subject: [PATCH] linter --- modules/ui_components.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui_components.py b/modules/ui_components.py index 02ee3cbad..e504cb43b 100644 --- a/modules/ui_components.py +++ b/modules/ui_components.py @@ -1,7 +1,7 @@ from functools import wraps import gradio as gr -from modules import gradio_extensions +from modules import gradio_extensions # noqa: F401 class FormComponent: @@ -20,7 +20,7 @@ class ToolButton(gr.Button, FormComponent): @wraps(gr.Button.__init__) def __init__(self, value="", *args, elem_classes=None, **kwargs): elem_classes = elem_classes or [] - super().__init__(value=value, *args, elem_classes=["tool", *elem_classes], **kwargs) + super().__init__(*args, elem_classes=["tool", *elem_classes], value=value, **kwargs) def get_block_name(self): return "button"