This commit is contained in:
AUTOMATIC1111 2023-07-18 15:55:23 +03:00
parent 420cc8f68e
commit ed82f1c5f1
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ for key, metadata in opts.data_labels.items():
value = None
optType = opts.typemap.get(type(metadata.default), type(value))
if optType == types.NoneType:
if isinstance(optType, types.NoneType):
pass
elif metadata is not None:
fields.update({key: (Optional[optType], Field(default=metadata.default, description=metadata.label))})