Skip to content

Commit

Permalink
[REF-3227] implement more literal vars (#3687)
Browse files Browse the repository at this point in the history
* implement more literal vars

* fix super issue

* pyright has a bug i think

* oh we changed that

* fix docs

* literalize vars recursively

* do what masen told me :D

* use dynamic keys

* forgot .create

* adjust _var_value

* dang it darglint

* add test for serializing literal vars into js exprs

* fix silly mistake

* add  handling for var and none

* use create safe

* is none bruh

* implement function vars and do various modification

* fix None issue

* clear a lot of creates that did nothing

* add tests to function vars

* added simple fix smh

* use fconcat to make an even more complicated test
  • Loading branch information
adhami3310 authored Jul 22, 2024
1 parent 9666244 commit ea01631
Show file tree
Hide file tree
Showing 3 changed files with 594 additions and 32 deletions.
6 changes: 6 additions & 0 deletions reflex/experimental/vars/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@
from .base import ArrayVar as ArrayVar
from .base import BooleanVar as BooleanVar
from .base import ConcatVarOperation as ConcatVarOperation
from .base import FunctionStringVar as FunctionStringVar
from .base import FunctionVar as FunctionVar
from .base import ImmutableVar as ImmutableVar
from .base import LiteralArrayVar as LiteralArrayVar
from .base import LiteralBooleanVar as LiteralBooleanVar
from .base import LiteralNumberVar as LiteralNumberVar
from .base import LiteralObjectVar as LiteralObjectVar
from .base import LiteralStringVar as LiteralStringVar
from .base import LiteralVar as LiteralVar
from .base import NumberVar as NumberVar
from .base import ObjectVar as ObjectVar
from .base import StringVar as StringVar
from .base import VarOperationCall as VarOperationCall
Loading

0 comments on commit ea01631

Please sign in to comment.