mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
lint
This commit is contained in:
parent
420cc8f68e
commit
ed82f1c5f1
@ -213,7 +213,7 @@ for key, metadata in opts.data_labels.items():
|
|||||||
value = None
|
value = None
|
||||||
optType = opts.typemap.get(type(metadata.default), type(value))
|
optType = opts.typemap.get(type(metadata.default), type(value))
|
||||||
|
|
||||||
if optType == types.NoneType:
|
if isinstance(optType, types.NoneType):
|
||||||
pass
|
pass
|
||||||
elif metadata is not None:
|
elif metadata is not None:
|
||||||
fields.update({key: (Optional[optType], Field(default=metadata.default, description=metadata.label))})
|
fields.update({key: (Optional[optType], Field(default=metadata.default, description=metadata.label))})
|
||||||
|
Loading…
Reference in New Issue
Block a user