Skip to content

Commit 2b569f5

Browse files
added check for function
1 parent e1a4e7e commit 2b569f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

airbyte_cdk/sources/declarative/parsers/model_to_component_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ def _create_component_from_model(
850850
**kwargs,
851851
)
852852
return component_instance
853-
if inspect.ismethod(component):
853+
if inspect.ismethod(component) or inspect.isfunction(component):
854854
return component(model=model, config=config, **kwargs)
855855
raise ValueError(
856856
f"Unexpected component mapping type for {model.__class__}. "

0 commit comments

Comments
 (0)