precommit fix
This commit is contained in:
parent
55ff03c0b7
commit
07dfb48d8e
@ -107,7 +107,7 @@ class ColorModeIconButton(IconButton):
|
||||
cls,
|
||||
**props,
|
||||
):
|
||||
"""Create a icon button component that calls toggle_color_mode on click.
|
||||
"""Create an icon button component that calls toggle_color_mode on click.
|
||||
|
||||
Args:
|
||||
**props: The props to pass to the component.
|
||||
@ -120,7 +120,7 @@ class ColorModeIconButton(IconButton):
|
||||
|
||||
# position is used to set nice defaults for positioning the icon button
|
||||
if isinstance(position, Var):
|
||||
_set_var_default(props, position, "position", "fixed", position)
|
||||
_set_var_default(props, position, "position", "fixed", position) # type: ignore
|
||||
_set_var_default(props, position, "bottom", "2rem")
|
||||
_set_var_default(props, position, "top", "2rem")
|
||||
_set_var_default(props, position, "left", "2rem")
|
||||
|
@ -237,7 +237,7 @@ class ColorModeIconButton(IconButton):
|
||||
on_unmount: Optional[EventType[[]]] = None,
|
||||
**props,
|
||||
) -> "ColorModeIconButton":
|
||||
"""Create a icon button component that calls toggle_color_mode on click.
|
||||
"""Create an icon button component that calls toggle_color_mode on click.
|
||||
|
||||
Args:
|
||||
position: The position of the icon button. Follow document flow if None.
|
||||
|
@ -47,7 +47,7 @@ class BaseList(Component):
|
||||
] = Var.create("none")
|
||||
|
||||
# A list of items to add to the list.
|
||||
items: Var[Optional[Var[Iterable]]] = None
|
||||
items: Var[Optional[Var[Iterable]]] = Var.create(None)
|
||||
|
||||
@classmethod
|
||||
def create(
|
||||
|
Loading…
Reference in New Issue
Block a user