diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-09-09 07:23:53 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-09-09 07:23:53 +0000 |
commit | 06af73bd1d17b417f234746c9a2f8e8e92cf6149 (patch) | |
tree | 820bad6d0b6ff3c89711ce542a03a08f7981bd96 /modules/scripts.py | |
parent | 9cebe308e9f30f2a9555cf9fc43bf20652c4a619 (diff) | |
download | stable-diffusion-webui-gfx803-06af73bd1d17b417f234746c9a2f8e8e92cf6149.tar.gz stable-diffusion-webui-gfx803-06af73bd1d17b417f234746c9a2f8e8e92cf6149.tar.bz2 stable-diffusion-webui-gfx803-06af73bd1d17b417f234746c9a2f8e8e92cf6149.zip |
linter
Diffstat (limited to 'modules/scripts.py')
-rw-r--r-- | modules/scripts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/scripts.py b/modules/scripts.py index f1f17a5f..5c6e0226 100644 --- a/modules/scripts.py +++ b/modules/scripts.py @@ -498,7 +498,7 @@ class ScriptRunner: choices = getattr(control, 'choices', None) # as of gradio 3.41, some items in choices are strings, and some are tuples where the first elem is the string
if choices is not None:
- setattr(arg_info, 'choices', [x[0] if isinstance(x, tuple) else x for x in choices])
+ arg_info.choices = [x[0] if isinstance(x, tuple) else x for x in choices]
api_args.append(arg_info)
|