precommit fix

This commit is contained in:
Elijah 2024-10-18 13:28:48 +00:00
parent 55ff03c0b7
commit 07dfb48d8e
3 changed files with 4 additions and 4 deletions

View File

@ -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")

View File

@ -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.

View File

@ -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(