Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

order type annotations in pyi_generator #3585

Merged
merged 2 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion reflex/components/chakra/disclosure/accordion.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Accordion(ChakraComponent):
Union[Var[Optional[List[int]]], Optional[List[int]]]
] = None,
index: Optional[
Union[Var[Union[int, List[int]]], Union[int, List[int]]]
Union[Var[Union[List[int], int]], Union[List[int], int]]
] = None,
reduce_motion: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
Expand Down
6 changes: 3 additions & 3 deletions reflex/components/chakra/disclosure/transition.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ class SlideFade(Transition):
def create( # type: ignore
cls,
*children,
offsetX: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
offsetY: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
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,
in_: Optional[Union[Var[bool], bool]] = None,
unmount_on_exit: Optional[Union[Var[bool], bool]] = None,
Expand Down Expand Up @@ -431,7 +431,7 @@ class Collapse(Transition):
*children,
animateOpacity: Optional[Union[Var[bool], bool]] = None,
endingHeight: Optional[Union[Var[str], str]] = None,
startingHeight: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
startingHeight: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
in_: Optional[Union[Var[bool], bool]] = None,
unmount_on_exit: Optional[Union[Var[bool], bool]] = None,
style: Optional[Style] = None,
Expand Down
2 changes: 1 addition & 1 deletion reflex/components/chakra/feedback/circularprogress.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CircularProgress(ChakraComponent):
is_indeterminate: Optional[Union[Var[bool], bool]] = None,
max_: Optional[Union[Var[int], int]] = None,
min_: Optional[Union[Var[int], int]] = None,
thickness: Optional[Union[Var[Union[str, int]], Union[str, int]]] = None,
thickness: Optional[Union[Var[Union[int, str]], Union[int, str]]] = None,
track_color: Optional[Union[Var[str], str]] = None,
value: Optional[Union[Var[int], int]] = None,
value_text: Optional[Union[Var[str], str]] = None,
Expand Down
2 changes: 1 addition & 1 deletion reflex/components/chakra/feedback/progress.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Progress(ChakraComponent):
is_indeterminate: Optional[Union[Var[bool], bool]] = None,
max_: Optional[Union[Var[int], int]] = None,
min_: Optional[Union[Var[int], int]] = None,
value: Optional[Union[Var[Union[int, float]], Union[int, float]]] = None,
value: Optional[Union[Var[Union[float, int]], Union[float, int]]] = None,
color_scheme: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
Expand Down
50 changes: 25 additions & 25 deletions reflex/components/chakra/forms/form.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,71 +20,71 @@ class Form(ChakraComponent, HTMLForm):
*children,
as_: Optional[Union[Var[str], str]] = None,
accept: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
accept_charset: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
action: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
auto_complete: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
enc_type: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
method: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
name: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
name: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
no_validate: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
target: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
reset_on_submit: Optional[Union[Var[bool], bool]] = None,
handle_submit_unique_name: Optional[Union[Var[str], str]] = None,
access_key: Optional[
Union[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[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
content_editable: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
context_menu: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
dir: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
draggable: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
enter_key_hint: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
hidden: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
input_mode: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
item_prop: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = 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[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
tab_index: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
title: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
Expand Down
4 changes: 2 additions & 2 deletions reflex/components/chakra/layout/flex.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class Flex(ChakraComponent):
align: Optional[Union[Var[str], str]] = None,
basis: Optional[Union[Var[str], str]] = None,
direction: Optional[
Union[Var[Union[str, List[str]]], Union[str, List[str]]]
Union[Var[Union[List[str], str]], Union[List[str], str]]
] = None,
grow: Optional[Union[Var[str], str]] = None,
justify: Optional[Union[Var[str], str]] = None,
wrap: Optional[Union[Var[Union[str, List[str]]], Union[str, List[str]]]] = None,
wrap: Optional[Union[Var[Union[List[str], str]], Union[List[str], str]]] = None,
shrink: Optional[Union[Var[str], str]] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
Expand Down
12 changes: 6 additions & 6 deletions reflex/components/chakra/layout/stack.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class Stack(ChakraComponent):
align_items: Optional[Union[Var[str], str]] = None,
direction: Optional[
Union[
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"]],
]
] = None,
is_inline: Optional[Union[Var[bool], bool]] = None,
Expand Down Expand Up @@ -117,8 +117,8 @@ class Hstack(Stack):
align_items: Optional[Union[Var[str], str]] = None,
direction: Optional[
Union[
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"]],
]
] = None,
is_inline: Optional[Union[Var[bool], bool]] = None,
Expand Down Expand Up @@ -214,8 +214,8 @@ class Vstack(Stack):
align_items: Optional[Union[Var[str], str]] = None,
direction: Optional[
Union[
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"]],
]
] = None,
is_inline: Optional[Union[Var[bool], bool]] = None,
Expand Down
32 changes: 16 additions & 16 deletions reflex/components/core/banner.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -455,44 +455,44 @@ class ConnectionPulser(Div):
cls,
*children,
access_key: Optional[
Union[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[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
content_editable: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
context_menu: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
dir: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
draggable: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
enter_key_hint: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
hidden: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
input_mode: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
item_prop: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = 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[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
tab_index: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
title: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
Expand Down
2 changes: 1 addition & 1 deletion reflex/components/core/debounce.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DebounceInput(Component):
force_notify_by_enter: Optional[Union[Var[bool], bool]] = None,
force_notify_on_blur: Optional[Union[Var[bool], bool]] = None,
value: Optional[
Union[Var[Union[str, int, float]], Union[str, int, float]]
Union[Var[Union[float, int, str]], Union[float, int, str]]
] = None,
input_ref: Optional[Union[Var[str], str]] = None,
element: Optional[Union[Var[Type[Component]], Type[Component]]] = None,
Expand Down
32 changes: 16 additions & 16 deletions reflex/components/core/html.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -21,44 +21,44 @@ class Html(Div):
Union[Var[Dict[str, str]], Dict[str, str]]
] = None,
access_key: Optional[
Union[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[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
content_editable: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
context_menu: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
dir: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
draggable: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
enter_key_hint: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
hidden: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
input_mode: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
item_prop: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = 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[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
tab_index: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
title: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
Expand Down
2 changes: 1 addition & 1 deletion reflex/components/datadisplay/code.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class CodeBlock(Component):
cls,
*children,
can_copy: Optional[bool] = False,
copy_button: Optional[Union[bool, Component]] = None,
copy_button: Optional[Union[Component, bool]] = None,
theme: Optional[
Union[
Var[
Expand Down
32 changes: 16 additions & 16 deletions reflex/components/el/elements/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,44 +18,44 @@ class BaseHTML(Element):
cls,
*children,
access_key: Optional[
Union[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[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
content_editable: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
context_menu: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
dir: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
dir: Optional[Union[Var[Union[bool, int, str]], Union[bool, int, str]]] = None,
draggable: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
enter_key_hint: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
hidden: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
input_mode: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
item_prop: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
lang: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
role: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = None,
slot: Optional[Union[Var[Union[str, int, bool]], Union[str, int, bool]]] = 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[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
tab_index: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
title: Optional[
Union[Var[Union[str, int, bool]], Union[str, int, bool]]
Union[Var[Union[bool, int, str]], Union[bool, int, str]]
] = None,
style: Optional[Style] = None,
key: Optional[Any] = None,
Expand Down
Loading
Loading