Skip to content

Commit

Permalink
pyright!
Browse files Browse the repository at this point in the history
  • Loading branch information
ElijahAhianyo committed Dec 12, 2024
1 parent 437d421 commit fb8e28c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions reflex/components/el/elements/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,10 @@ def create(cls, *children, **props):
(value_var := Var.create(value))._var_type
):
props["value"] = ternary_operation(
(value_var != Var.create(None))
(value_var != Var.create(None)) # pyright: ignore [reportGeneralTypeIssues]
& (value_var != Var(_js_expr="undefined")),
value,
"",
Var.create(""),
)
return super().create(*children, **props)

Expand Down
4 changes: 2 additions & 2 deletions reflex/components/radix/themes/components/text_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ def create(cls, *children, **props) -> Component:
(value_var := Var.create(value))._var_type
):
props["value"] = ternary_operation(
(value_var != Var.create(None))
(value_var != Var.create(None)) # pyright: ignore [reportGeneralTypeIssues]
& (value_var != Var(_js_expr="undefined")),
value,
"",
Var.create(""),
)

component = super().create(*children, **props)
Expand Down

0 comments on commit fb8e28c

Please sign in to comment.