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"