Skip to content

Commit e367fd3

Browse files
committed
Fixed check for empty signature
1 parent 0afbe6c commit e367fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ def get_detailed_type(obj: Any) -> Type:
10571057
continue
10581058
elif (
10591059
arg is not None
1060-
and expected_types[kw] is not inspect.Signature.empty # no type annotations
1060+
and not expected_types[kw] == (inspect.Signature.empty,) # no type annotations
10611061
and not is_valid_type(arg, expected_types[kw])
10621062
):
10631063
logger.warning(f"Expected types for {kw}: {expected_types[kw]}, got {get_detailed_type(arg)}.")

0 commit comments

Comments
 (0)