fix pyi
This commit is contained in:
parent
192646af9f
commit
42fd69a93a
@ -14,10 +14,8 @@ from typing import (
|
||||
Any,
|
||||
Callable,
|
||||
ClassVar,
|
||||
Dict,
|
||||
Iterator,
|
||||
List,
|
||||
Optional,
|
||||
Sequence,
|
||||
Set,
|
||||
Type,
|
||||
|
@ -227,7 +227,7 @@ class ContextMenuItem(RadixThemesComponent):
|
||||
# Optional text used for typeahead purposes. By default the typeahead behavior will use the content of the item. Use this when the content is complex, or you have non-textual content inside.
|
||||
text_value: Var[str]
|
||||
|
||||
_valid_parents: List[str] = [
|
||||
_valid_parents: list[str] = [
|
||||
"ContextMenuContent",
|
||||
"ContextMenuSubContent",
|
||||
"ContextMenuGroup",
|
||||
@ -269,7 +269,7 @@ class ContextMenuGroup(RadixThemesComponent):
|
||||
# Change the default rendered element for the one passed as a child, merging their props and behavior. Defaults to False.
|
||||
as_child: Var[bool]
|
||||
|
||||
_valid_parents: List[str] = ["ContextMenuContent", "ContextMenuSubContent"]
|
||||
_valid_parents: list[str] = ["ContextMenuContent", "ContextMenuSubContent"]
|
||||
|
||||
|
||||
class ContextMenuRadioGroup(RadixThemesComponent):
|
||||
@ -289,7 +289,7 @@ class ContextMenuRadioGroup(RadixThemesComponent):
|
||||
# Fired when the value of the radio group changes.
|
||||
on_change: EventHandler[passthrough_event_spec(str)]
|
||||
|
||||
_valid_parents: List[str] = [
|
||||
_valid_parents: list[str] = [
|
||||
"ContextMenuRadioItem",
|
||||
"ContextMenuSubContent",
|
||||
"ContextMenuContent",
|
||||
|
@ -3,7 +3,7 @@
|
||||
# ------------------- DO NOT EDIT ----------------------
|
||||
# This file was generated by `reflex/utils/pyi_generator.py`!
|
||||
# ------------------------------------------------------
|
||||
from typing import Any, Dict, List, Literal, Optional, Union, overload
|
||||
from typing import Any, Literal, Optional, overload
|
||||
|
||||
from reflex.components.component import ComponentNamespace
|
||||
from reflex.components.core.breakpoints import Breakpoints
|
||||
@ -791,13 +791,13 @@ class ContextMenuLabel(RadixThemesComponent):
|
||||
def create( # type: ignore
|
||||
cls,
|
||||
*children,
|
||||
as_child: Optional[Union[Var[bool], bool]] = None,
|
||||
style: Optional[Style] = None,
|
||||
key: Optional[Any] = None,
|
||||
id: Optional[Any] = None,
|
||||
class_name: Optional[Any] = None,
|
||||
autofocus: Optional[bool] = None,
|
||||
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
||||
as_child: Var[bool] | bool | None = None,
|
||||
style: Style | None = None,
|
||||
key: Any | None = None,
|
||||
id: Any | None = None,
|
||||
class_name: Any | None = None,
|
||||
autofocus: bool | None = None,
|
||||
custom_attrs: dict[str, Var | Any] | None = None,
|
||||
on_blur: Optional[EventType[()]] = None,
|
||||
on_click: Optional[EventType[()]] = None,
|
||||
on_context_menu: Optional[EventType[()]] = None,
|
||||
@ -842,13 +842,13 @@ class ContextMenuGroup(RadixThemesComponent):
|
||||
def create( # type: ignore
|
||||
cls,
|
||||
*children,
|
||||
as_child: Optional[Union[Var[bool], bool]] = None,
|
||||
style: Optional[Style] = None,
|
||||
key: Optional[Any] = None,
|
||||
id: Optional[Any] = None,
|
||||
class_name: Optional[Any] = None,
|
||||
autofocus: Optional[bool] = None,
|
||||
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
||||
as_child: Var[bool] | bool | None = None,
|
||||
style: Style | None = None,
|
||||
key: Any | None = None,
|
||||
id: Any | None = None,
|
||||
class_name: Any | None = None,
|
||||
autofocus: bool | None = None,
|
||||
custom_attrs: dict[str, Var | Any] | None = None,
|
||||
on_blur: Optional[EventType[()]] = None,
|
||||
on_click: Optional[EventType[()]] = None,
|
||||
on_context_menu: Optional[EventType[()]] = None,
|
||||
@ -893,16 +893,16 @@ class ContextMenuRadioGroup(RadixThemesComponent):
|
||||
def create( # type: ignore
|
||||
cls,
|
||||
*children,
|
||||
as_child: Optional[Union[Var[bool], bool]] = None,
|
||||
value: Optional[Union[Var[str], str]] = None,
|
||||
style: Optional[Style] = None,
|
||||
key: Optional[Any] = None,
|
||||
id: Optional[Any] = None,
|
||||
class_name: Optional[Any] = None,
|
||||
autofocus: Optional[bool] = None,
|
||||
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
||||
as_child: Var[bool] | bool | None = None,
|
||||
value: Var[str] | str | None = None,
|
||||
style: Style | None = None,
|
||||
key: Any | None = None,
|
||||
id: Any | None = None,
|
||||
class_name: Any | None = None,
|
||||
autofocus: bool | None = None,
|
||||
custom_attrs: dict[str, Var | Any] | None = None,
|
||||
on_blur: Optional[EventType[()]] = None,
|
||||
on_change: Optional[Union[EventType[()], EventType[str]]] = None,
|
||||
on_change: Optional[EventType[()] | EventType[str]] = None,
|
||||
on_click: Optional[EventType[()]] = None,
|
||||
on_context_menu: Optional[EventType[()]] = None,
|
||||
on_double_click: Optional[EventType[()]] = None,
|
||||
@ -948,104 +948,90 @@ class ContextMenuRadioItem(HighLevelRadioGroup):
|
||||
def create( # type: ignore
|
||||
cls,
|
||||
*children,
|
||||
color_scheme: Optional[
|
||||
Union[
|
||||
Literal[
|
||||
"amber",
|
||||
"blue",
|
||||
"bronze",
|
||||
"brown",
|
||||
"crimson",
|
||||
"cyan",
|
||||
"gold",
|
||||
"grass",
|
||||
"gray",
|
||||
"green",
|
||||
"indigo",
|
||||
"iris",
|
||||
"jade",
|
||||
"lime",
|
||||
"mint",
|
||||
"orange",
|
||||
"pink",
|
||||
"plum",
|
||||
"purple",
|
||||
"red",
|
||||
"ruby",
|
||||
"sky",
|
||||
"teal",
|
||||
"tomato",
|
||||
"violet",
|
||||
"yellow",
|
||||
],
|
||||
Var[
|
||||
Literal[
|
||||
"amber",
|
||||
"blue",
|
||||
"bronze",
|
||||
"brown",
|
||||
"crimson",
|
||||
"cyan",
|
||||
"gold",
|
||||
"grass",
|
||||
"gray",
|
||||
"green",
|
||||
"indigo",
|
||||
"iris",
|
||||
"jade",
|
||||
"lime",
|
||||
"mint",
|
||||
"orange",
|
||||
"pink",
|
||||
"plum",
|
||||
"purple",
|
||||
"red",
|
||||
"ruby",
|
||||
"sky",
|
||||
"teal",
|
||||
"tomato",
|
||||
"violet",
|
||||
"yellow",
|
||||
]
|
||||
],
|
||||
color_scheme: Literal[
|
||||
"amber",
|
||||
"blue",
|
||||
"bronze",
|
||||
"brown",
|
||||
"crimson",
|
||||
"cyan",
|
||||
"gold",
|
||||
"grass",
|
||||
"gray",
|
||||
"green",
|
||||
"indigo",
|
||||
"iris",
|
||||
"jade",
|
||||
"lime",
|
||||
"mint",
|
||||
"orange",
|
||||
"pink",
|
||||
"plum",
|
||||
"purple",
|
||||
"red",
|
||||
"ruby",
|
||||
"sky",
|
||||
"teal",
|
||||
"tomato",
|
||||
"violet",
|
||||
"yellow",
|
||||
]
|
||||
| Var[
|
||||
Literal[
|
||||
"amber",
|
||||
"blue",
|
||||
"bronze",
|
||||
"brown",
|
||||
"crimson",
|
||||
"cyan",
|
||||
"gold",
|
||||
"grass",
|
||||
"gray",
|
||||
"green",
|
||||
"indigo",
|
||||
"iris",
|
||||
"jade",
|
||||
"lime",
|
||||
"mint",
|
||||
"orange",
|
||||
"pink",
|
||||
"plum",
|
||||
"purple",
|
||||
"red",
|
||||
"ruby",
|
||||
"sky",
|
||||
"teal",
|
||||
"tomato",
|
||||
"violet",
|
||||
"yellow",
|
||||
]
|
||||
] = None,
|
||||
as_child: Optional[Union[Var[bool], bool]] = None,
|
||||
value: Optional[Union[Var[str], str]] = None,
|
||||
disabled: Optional[Union[Var[bool], bool]] = None,
|
||||
text_value: Optional[Union[Var[str], str]] = None,
|
||||
items: Optional[Union[List[str], Var[List[str]]]] = None,
|
||||
direction: Optional[
|
||||
Union[
|
||||
Literal["column", "column-reverse", "row", "row-reverse"],
|
||||
Var[Literal["column", "column-reverse", "row", "row-reverse"]],
|
||||
]
|
||||
] = None,
|
||||
spacing: Optional[
|
||||
Union[
|
||||
Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
|
||||
Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]],
|
||||
]
|
||||
] = None,
|
||||
size: Optional[
|
||||
Union[Literal["1", "2", "3"], Var[Literal["1", "2", "3"]]]
|
||||
] = None,
|
||||
variant: Optional[
|
||||
Union[
|
||||
Literal["classic", "soft", "surface"],
|
||||
Var[Literal["classic", "soft", "surface"]],
|
||||
]
|
||||
] = None,
|
||||
high_contrast: Optional[Union[Var[bool], bool]] = None,
|
||||
default_value: Optional[Union[Var[str], str]] = None,
|
||||
name: Optional[Union[Var[str], str]] = None,
|
||||
required: Optional[Union[Var[bool], bool]] = None,
|
||||
style: Optional[Style] = None,
|
||||
key: Optional[Any] = None,
|
||||
id: Optional[Any] = None,
|
||||
class_name: Optional[Any] = None,
|
||||
autofocus: Optional[bool] = None,
|
||||
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
||||
]
|
||||
| None = None,
|
||||
as_child: Var[bool] | bool | None = None,
|
||||
value: Var[str] | str | None = None,
|
||||
disabled: Var[bool] | bool | None = None,
|
||||
text_value: Var[str] | str | None = None,
|
||||
items: Var[list[str]] | list[str] | None = None,
|
||||
direction: Literal["column", "column-reverse", "row", "row-reverse"]
|
||||
| Var[Literal["column", "column-reverse", "row", "row-reverse"]]
|
||||
| None = None,
|
||||
spacing: Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
|
||||
| Var[Literal["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]]
|
||||
| None = None,
|
||||
size: Literal["1", "2", "3"] | Var[Literal["1", "2", "3"]] | None = None,
|
||||
variant: Literal["classic", "soft", "surface"]
|
||||
| Var[Literal["classic", "soft", "surface"]]
|
||||
| None = None,
|
||||
high_contrast: Var[bool] | bool | None = None,
|
||||
default_value: Var[str] | str | None = None,
|
||||
name: Var[str] | str | None = None,
|
||||
required: Var[bool] | bool | None = None,
|
||||
style: Style | None = None,
|
||||
key: Any | None = None,
|
||||
id: Any | None = None,
|
||||
class_name: Any | None = None,
|
||||
autofocus: bool | None = None,
|
||||
custom_attrs: dict[str, Var | Any] | None = None,
|
||||
on_blur: Optional[EventType[()]] = None,
|
||||
on_click: Optional[EventType[()]] = None,
|
||||
on_context_menu: Optional[EventType[()]] = None,
|
||||
|
@ -846,7 +846,7 @@ class Config(Base):
|
||||
env_file: str | None = None
|
||||
|
||||
# Whether to display the sticky "Built with Reflex" badge on all pages.
|
||||
show_built_with_reflex: Optional[bool] = None
|
||||
show_built_with_reflex: bool | None = None
|
||||
|
||||
# Whether the app is running in the reflex cloud environment.
|
||||
is_reflex_cloud: bool = False
|
||||
|
Loading…
Reference in New Issue
Block a user