mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-14 10:40:50 -07:00
manual fixes for ruff
This commit is contained in:
parent
762265eab5
commit
96d6ca4199
22 changed files with 129 additions and 129 deletions
|
|
@ -223,8 +223,9 @@ for key in _options:
|
|||
if(_options[key].dest != 'help'):
|
||||
flag = _options[key]
|
||||
_type = str
|
||||
if _options[key].default is not None: _type = type(_options[key].default)
|
||||
flags.update({flag.dest: (_type,Field(default=flag.default, description=flag.help))})
|
||||
if _options[key].default is not None:
|
||||
_type = type(_options[key].default)
|
||||
flags.update({flag.dest: (_type, Field(default=flag.default, description=flag.help))})
|
||||
|
||||
FlagsModel = create_model("Flags", **flags)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue