Skip to content

Commit c36f848

Browse files
authored
Type annotation fix (#11597)
* update * update
1 parent 54af3ca commit c36f848

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)