mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-26 19:29:54 +00:00
stype: fix ruff warnings
This commit is contained in:
@@ -82,7 +82,7 @@ def on_widget_change(state: dict, value: Any, *, attr: str):
|
||||
|
||||
def on_generate_click(state: dict, *values: Any):
|
||||
for attr, value in zip(ALL_ARGS.attrs, values):
|
||||
state[attr] = value
|
||||
state[attr] = value # noqa: PERF403
|
||||
state["is_api"] = ()
|
||||
return state
|
||||
|
||||
|
||||
@@ -8,4 +8,4 @@ cn_model_module = {
|
||||
"tile": "tile_resample",
|
||||
"depth": "depth_midas",
|
||||
}
|
||||
cn_model_regex = re.compile("|".join(cn_model_module.keys()), flags=re.I)
|
||||
cn_model_regex = re.compile("|".join(cn_model_module.keys()), flags=re.IGNORECASE)
|
||||
|
||||
Reference in New Issue
Block a user