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 12eca0e commit 2a7094dCopy full SHA for 2a7094d
1 file changed
reflex/components/component.py
@@ -1909,8 +1909,9 @@ def _register_custom_component(
1909
TypeError: If the tag name cannot be determined.
1910
"""
1911
dummy_props = {
1912
- prop: Var("", _var_type=param.annotation)
1913
- for prop, param in inspect.signature(component_fn).parameters.items()
+ prop: Var("", _var_type=annotation)
+ for prop, annotation in typing.get_type_hints(component_fn).items()
1914
+ if prop != "return"
1915
}
1916
dummy_component = CustomComponent._create(
1917
children=[],
0 commit comments