Skip to content

Commit c4bd1c7

Browse files
committed
Merge branch 'main' into metadata-lora
2 parents 46f4726 + c36f848 commit c4bd1c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,8 @@ def _get_signature_types(cls):
16651665
signature_types[k] = (v.annotation,)
16661666
elif get_origin(v.annotation) == Union:
16671667
signature_types[k] = get_args(v.annotation)
1668+
elif get_origin(v.annotation) in [List, Dict, list, dict]:
1669+
signature_types[k] = (v.annotation,)
16681670
else:
16691671
logger.warning(f"cannot get type annotation for Parameter {k} of {cls}.")
16701672
return signature_types

0 commit comments

Comments
 (0)