mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-11 23:39:01 +08:00
lint
This commit is contained in:
parent
41bb886979
commit
8ea1325fdc
@ -262,7 +262,7 @@ def split_infotext(x: str):
|
||||
|
||||
def parameters_to_dict(parameters: str):
|
||||
"""convert parameters from string to dict"""
|
||||
return {k: v for k, v in re_param.findall(parameters)}
|
||||
return dict(re_param.findall(parameters))
|
||||
|
||||
|
||||
def parse_parameters(param_dict: dict):
|
||||
|
Loading…
x
Reference in New Issue
Block a user