From 3c30ceb7f71199e8d720b1275f806411c5e3cddf Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Fri, 1 Mar 2024 23:10:36 +0100 Subject: [PATCH] new regex missed f-strings --- reflex/components/component.py | 2 +- reflex/components/core/upload.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reflex/components/component.py b/reflex/components/component.py index f4807f11f..f45cd9a80 100644 --- a/reflex/components/component.py +++ b/reflex/components/component.py @@ -1245,7 +1245,7 @@ class CustomComponent(Component): """A custom user-defined component.""" # Use the components library. - library = f"/{Dirs.COMPONENTS_PATH}" + library: str = f"/{Dirs.COMPONENTS_PATH}" # The function that creates the component. component_fn: Callable[..., Component] = Component.create diff --git a/reflex/components/core/upload.py b/reflex/components/core/upload.py index 823e76f4a..aba9595d8 100644 --- a/reflex/components/core/upload.py +++ b/reflex/components/core/upload.py @@ -157,7 +157,7 @@ def _on_drop_spec(files: Var): class UploadFilesProvider(Component): """AppWrap component that provides a dict of selected files by ID via useContext.""" - library = f"/{Dirs.CONTEXTS_PATH}" + library: str = f"/{Dirs.CONTEXTS_PATH}" tag: str = "UploadFilesProvider"