From 07dfb48d8ee47fa91a42cb5dc70bc1806646b6ff Mon Sep 17 00:00:00 2001 From: Elijah Date: Fri, 18 Oct 2024 13:28:48 +0000 Subject: [PATCH] precommit fix --- reflex/components/radix/themes/color_mode.py | 4 ++-- reflex/components/radix/themes/color_mode.pyi | 2 +- reflex/components/radix/themes/layout/list.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reflex/components/radix/themes/color_mode.py b/reflex/components/radix/themes/color_mode.py index 78f369af0..3475df459 100644 --- a/reflex/components/radix/themes/color_mode.py +++ b/reflex/components/radix/themes/color_mode.py @@ -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") diff --git a/reflex/components/radix/themes/color_mode.pyi b/reflex/components/radix/themes/color_mode.pyi index 8bae9f6e4..b93465c94 100644 --- a/reflex/components/radix/themes/color_mode.pyi +++ b/reflex/components/radix/themes/color_mode.pyi @@ -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. diff --git a/reflex/components/radix/themes/layout/list.py b/reflex/components/radix/themes/layout/list.py index 5328f628a..b53d2747f 100644 --- a/reflex/components/radix/themes/layout/list.py +++ b/reflex/components/radix/themes/layout/list.py @@ -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(