/Users/masen/code/reflex-dev/reflex-examples/json-tree/json_tree/json_tree.py:64:14 - error: Argument of type "() -> tuple[Component]" cannot be assigned to parameter "component" of type "Component | ComponentCallable" in function "add_page"
Type "() -> tuple[Component]" cannot be assigned to type "Component | ComponentCallable"
"function" is incompatible with "Component"
Type "() -> tuple[Component]" cannot be assigned to type "ComponentCallable"
Function return type "tuple[Component]" is incompatible with type "Component"
"tuple[Component]" is incompatible with "Component" (reportGeneralTypeIssues)
To Reproduce
Having a page function (ComponentCallable) that returns a tuple of Component is just fine, the code handles... but it fails type checking.
Expected behavior
Valid code should type check correctly
Specifics (please complete the following information):
Describe the bug
To Reproduce Having a page function (
ComponentCallable
) that returns a tuple ofComponent
is just fine, the code handles... but it fails type checking.Expected behavior Valid code should type check correctly
Specifics (please complete the following information):