We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0afbe6c commit e367fd3Copy full SHA for e367fd3
src/diffusers/pipelines/pipeline_utils.py
@@ -1057,7 +1057,7 @@ def get_detailed_type(obj: Any) -> Type:
1057
continue
1058
elif (
1059
arg is not None
1060
- and expected_types[kw] is not inspect.Signature.empty # no type annotations
+ and not expected_types[kw] == (inspect.Signature.empty,) # no type annotations
1061
and not is_valid_type(arg, expected_types[kw])
1062
):
1063
logger.warning(f"Expected types for {kw}: {expected_types[kw]}, got {get_detailed_type(arg)}.")
0 commit comments