reflex/reflex/vars
Masen Furer ae0f3f820e
Handle bool cast for optional NumberVar (#4010)
* Handle bool cast for optional NumberVar

If the _var_type is optional, then also check that the value is not None

* boolify the result of `and_operation`

* flip order to be more semantically pure

---------

Co-authored-by: Khaleel Al-Adhami <khaleel.aladhami@gmail.com>
2024-09-26 21:52:31 -07:00
..
__init__.py replace old var system with immutable one (#3916) 2024-09-13 16:01:52 -07:00
base.py remove format_state and override behavior for bare (#3979) 2024-09-26 16:00:28 -07:00
function.py replace old var system with immutable one (#3916) 2024-09-13 16:01:52 -07:00
number.py Handle bool cast for optional NumberVar (#4010) 2024-09-26 21:52:31 -07:00
object.py replace old var system with immutable one (#3916) 2024-09-13 16:01:52 -07:00
sequence.py allow classname to be state vars (#3991) 2024-09-25 09:57:29 -07:00