Skip to content

Commit

Permalink
order type annotations in pyi_generator (#3585)
Browse files Browse the repository at this point in the history
* order type annotations in pyi_generator

* run pyi_generator
  • Loading branch information
benedikt-bartscher authored and adhami3310 committed Jun 28, 2024
1 parent de40a05 commit 2532698
Show file tree
Hide file tree
Showing 58 changed files with 8,111 additions and 93 deletions.
4 changes: 4 additions & 0 deletions reflex/components/chakra/disclosure/accordion.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ class Accordion(ChakraComponent):
Union[reflex.vars.Var[Optional[List[int]]], Optional[List[int]]]
] = None,
index: Optional[
<<<<<<< HEAD
<<<<<<< HEAD
Union[reflex.vars.Var[Union[int, List[int]]], Union[int, List[int]]]
=======
Union[Var[Union[List[int], int]], Union[List[int], int]]
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
=======
Union[Var[Union[List[int], int]], Union[List[int], int]]
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
Expand Down
3 changes: 3 additions & 0 deletions reflex/components/chakra/disclosure/transition.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ class SlideFade(Transition):
def create( # type: ignore
cls,
*children,
<<<<<<< HEAD
<<<<<<< HEAD
offsetX: Optional[
Union[reflex.vars.Var[Union[str, int]], Union[str, int]]
Expand All @@ -355,6 +356,8 @@ class SlideFade(Transition):
in_: Optional[Union[reflex.vars.Var[bool], bool]] = None,
unmount_on_exit: Optional[Union[reflex.vars.Var[bool], bool]] = None,
=======
=======
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
offsetX: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
offsetY: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
reverse: Optional[Union[Var[bool], bool]] = None,
Expand Down
66 changes: 66 additions & 0 deletions reflex/components/chakra/forms/form.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Form(ChakraComponent, HTMLForm):
*children,
as_: Optional[Union[reflex.vars.Var[str], str]] = None,
accept: Optional[
<<<<<<< HEAD
<<<<<<< HEAD
Union[reflex.vars.Var[Union[str, int, bool]], Union[str, int, bool]]
] = None,
Expand All @@ -47,6 +48,7 @@ class Form(ChakraComponent, HTMLForm):
] = None,
target: Optional[
Union[reflex.vars.Var[Union[str, int, bool]], Union[str, int, bool]]
=======
=======
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
Expand All @@ -70,12 +72,36 @@ class Form(ChakraComponent, HTMLForm):
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
target: Optional[
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
accept_charset: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
action: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
auto_complete: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
enc_type: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
method: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
name: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
no_validate: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
target: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
] = None,
reset_on_submit: Optional[Union[reflex.vars.Var[bool], bool]] = None,
handle_submit_unique_name: Optional[Union[reflex.vars.Var[str], str]] = None,
access_key: Optional[
<<<<<<< HEAD
<<<<<<< HEAD
Union[reflex.vars.Var[Union[str, int, bool]], Union[str, int, bool]]
] = None,
Expand Down Expand Up @@ -123,6 +149,46 @@ class Form(ChakraComponent, HTMLForm):
] = None,
title: Optional[
Union[reflex.vars.Var[Union[str, int, bool]], Union[str, int, bool]]
=======
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
auto_capitalize: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
content_editable: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
context_menu: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
dir: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
draggable: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
enter_key_hint: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
hidden: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
input_mode: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
item_prop: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
lang: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
role: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
slot: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
spell_check: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
tab_index: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
title: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
=======
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
Expand Down
3 changes: 3 additions & 0 deletions reflex/components/chakra/layout/flex.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class Flex(ChakraComponent):
align: Optional[Union[reflex.vars.Var[str], str]] = None,
basis: Optional[Union[reflex.vars.Var[str], str]] = None,
direction: Optional[
<<<<<<< HEAD
<<<<<<< HEAD
Union[reflex.vars.Var[Union[str, List[str]]], Union[str, List[str]]]
] = None,
Expand All @@ -31,6 +32,8 @@ class Flex(ChakraComponent):
] = None,
shrink: Optional[Union[reflex.vars.Var[str], str]] = None,
=======
=======
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
Union[Var[Union[List[str], str]], Union[List[str], str]]
] = None,
grow: Optional[Union[Var[str], str]] = None,
Expand Down
15 changes: 15 additions & 0 deletions reflex/components/chakra/layout/stack.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ class Stack(ChakraComponent):
align_items: Optional[Union[reflex.vars.Var[str], str]] = None,
direction: Optional[
Union[
<<<<<<< HEAD
<<<<<<< HEAD
reflex.vars.Var[Union[Literal["row", "column"], List[str]]],
Union[Literal["row", "column"], List[str]],
=======
Var[Union[List[str], Literal["row", "column"]]],
Union[List[str], Literal["row", "column"]],
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
=======
Var[Union[List[str], Literal["row", "column"]]],
Union[List[str], Literal["row", "column"]],
Expand Down Expand Up @@ -123,9 +128,14 @@ class Hstack(Stack):
align_items: Optional[Union[reflex.vars.Var[str], str]] = None,
direction: Optional[
Union[
<<<<<<< HEAD
<<<<<<< HEAD
reflex.vars.Var[Union[Literal["row", "column"], List[str]]],
Union[Literal["row", "column"], List[str]],
=======
Var[Union[List[str], Literal["row", "column"]]],
Union[List[str], Literal["row", "column"]],
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
=======
Var[Union[List[str], Literal["row", "column"]]],
Union[List[str], Literal["row", "column"]],
Expand Down Expand Up @@ -225,9 +235,14 @@ class Vstack(Stack):
align_items: Optional[Union[reflex.vars.Var[str], str]] = None,
direction: Optional[
Union[
<<<<<<< HEAD
<<<<<<< HEAD
reflex.vars.Var[Union[Literal["row", "column"], List[str]]],
Union[Literal["row", "column"], List[str]],
=======
Var[Union[List[str], Literal["row", "column"]]],
Union[List[str], Literal["row", "column"]],
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
=======
Var[Union[List[str], Literal["row", "column"]]],
Union[List[str], Literal["row", "column"]],
Expand Down
41 changes: 41 additions & 0 deletions reflex/components/core/banner.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ class ConnectionPulser(Div):
cls,
*children,
access_key: Optional[
<<<<<<< HEAD
<<<<<<< HEAD
Union[reflex.vars.Var[Union[str, int, bool]], Union[str, int, bool]]
] = None,
Expand Down Expand Up @@ -503,6 +504,46 @@ class ConnectionPulser(Div):
] = None,
title: Optional[
Union[reflex.vars.Var[Union[str, int, bool]], Union[str, int, bool]]
=======
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
auto_capitalize: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
content_editable: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
context_menu: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
dir: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
draggable: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
enter_key_hint: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
hidden: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
input_mode: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
item_prop: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
lang: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
role: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
slot: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
spell_check: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
tab_index: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
title: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
=======
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
Expand Down
4 changes: 4 additions & 0 deletions reflex/components/core/debounce.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ class DebounceInput(Component):
force_notify_by_enter: Optional[Union[reflex.vars.Var[bool], bool]] = None,
force_notify_on_blur: Optional[Union[reflex.vars.Var[bool], bool]] = None,
value: Optional[
<<<<<<< HEAD
<<<<<<< HEAD
Union[reflex.vars.Var[Union[str, int, float]], Union[str, int, float]]
] = None,
input_ref: Optional[Union[reflex.vars.Var[str], str]] = None,
element: Optional[
Union[reflex.vars.Var[Type[Component]], Type[Component]]
=======
Union[Var[Union[float, int, str]], Union[float, int, str]]
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
=======
Union[Var[Union[float, int, str]], Union[float, int, str]]
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
Expand Down
41 changes: 41 additions & 0 deletions reflex/components/core/html.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Html(Div):
Union[reflex.vars.Var[Dict[str, str]], Dict[str, str]]
] = None,
access_key: Optional[
<<<<<<< HEAD
<<<<<<< HEAD
Union[reflex.vars.Var[Union[str, int, bool]], Union[str, int, bool]]
] = None,
Expand Down Expand Up @@ -69,6 +70,46 @@ class Html(Div):
] = None,
title: Optional[
Union[reflex.vars.Var[Union[str, int, bool]], Union[str, int, bool]]
=======
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
auto_capitalize: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
content_editable: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
context_menu: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
dir: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
draggable: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
enter_key_hint: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
hidden: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
input_mode: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
item_prop: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
lang: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
role: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
slot: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
spell_check: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
tab_index: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
title: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
=======
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
Expand Down
41 changes: 41 additions & 0 deletions reflex/components/el/elements/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class BaseHTML(Element):
cls,
*children,
access_key: Optional[
<<<<<<< HEAD
<<<<<<< HEAD
Union[reflex.vars.Var[Union[str, int, bool]], Union[str, int, bool]]
] = None,
Expand Down Expand Up @@ -66,6 +67,46 @@ class BaseHTML(Element):
] = None,
title: Optional[
Union[reflex.vars.Var[Union[str, int, bool]], Union[str, int, bool]]
=======
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
auto_capitalize: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
content_editable: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
context_menu: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
dir: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
draggable: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
enter_key_hint: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
hidden: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
input_mode: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
item_prop: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
lang: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
role: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
slot: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
spell_check: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
tab_index: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
title: Optional[
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
>>>>>>> 2027a2f0 (order type annotations in pyi_generator (#3585))
=======
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
Expand Down
Loading

0 comments on commit 2532698

Please sign in to comment.