mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-20 21:30:09 +08:00
linter
This commit is contained in:
parent
656c6a5f4d
commit
b8040e4ab9
@ -1,7 +1,7 @@
|
|||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
import gradio as gr
|
import gradio as gr
|
||||||
from modules import gradio_extensions
|
from modules import gradio_extensions # noqa: F401
|
||||||
|
|
||||||
|
|
||||||
class FormComponent:
|
class FormComponent:
|
||||||
@ -20,7 +20,7 @@ class ToolButton(gr.Button, FormComponent):
|
|||||||
@wraps(gr.Button.__init__)
|
@wraps(gr.Button.__init__)
|
||||||
def __init__(self, value="", *args, elem_classes=None, **kwargs):
|
def __init__(self, value="", *args, elem_classes=None, **kwargs):
|
||||||
elem_classes = elem_classes or []
|
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):
|
def get_block_name(self):
|
||||||
return "button"
|
return "button"
|
||||||
|
Loading…
Reference in New Issue
Block a user