reflex/tests/components
Masen Furer 0a8aaea599
[REF-2682] Foreach over dict uses Tuple arg value (#3160)
* test_foreach: assert on arg _var_type

* [REF-2682] Foreach over dict uses Tuple arg value

When iterating over a Var with _var_type dict, the resulting arg value
_var_type should be Tuple[key, value] so it can be correctly used with other
var operations.

Fix #3157

* Correct _var_type for iteration over Tuple of multiple types

The arg value when iterating over a tuple could be any of the possible values
mentioned in the annotation.

When only one type is used, the Union collapses to the base type, at least in py3.11

* Add comments
2024-04-25 09:10:55 -07:00
..
base generate pyi files when building/publishing 3rd party component (#2945) 2024-03-29 09:54:21 -07:00
core [REF-2682] Foreach over dict uses Tuple arg value (#3160) 2024-04-25 09:10:55 -07:00
datadisplay Top-level namespace tweaks (#2523) 2024-02-05 11:14:02 -08:00
el Lendemor/improve coverage (#2988) 2024-04-04 14:31:43 +02:00
forms Refactor upload component and add styled upload component (#3035) 2024-04-24 13:45:22 -07:00
graphing Lendemor/improve coverage (#2988) 2024-04-04 14:31:43 +02:00
layout generate pyi files when building/publishing 3rd party component (#2945) 2024-03-29 09:54:21 -07:00
lucide Lendemor/improve coverage (#2988) 2024-04-04 14:31:43 +02:00
media Use rx.el.img as rx.image (#2558) 2024-02-08 14:44:53 -08:00
radix Lendemor/improve coverage (#2988) 2024-04-04 14:31:43 +02:00
typography remove inheritance from Flex for list components (#2936) 2024-03-28 10:58:36 -07:00
__init__.py Add basic unit tests (#7) 2022-11-20 14:34:25 -08:00
test_component_future_annotations.py [REF-2272] Support declaring EventHandlers directly in component (#2952) 2024-03-29 06:26:07 -07:00
test_component_state.py [REF-2265] ComponentState: scaffold for copying State per Component instance (#2923) 2024-03-29 09:22:25 -07:00
test_component.py [REF-2636]Improve Error message for unsupported event trigger (#3147) 2024-04-23 14:36:26 -07:00
test_tag.py fixed issue with hypens (#2450) 2024-01-26 14:14:46 -08:00