Преглед изворни кода

new regex missed f-strings

Benedikt Bartscher пре 1 година
родитељ
комит
3c30ceb7f7
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      reflex/components/component.py
  2. 1 1
      reflex/components/core/upload.py

+ 1 - 1
reflex/components/component.py

@@ -1245,7 +1245,7 @@ class CustomComponent(Component):
     """A custom user-defined component."""
     """A custom user-defined component."""
 
 
     # Use the components library.
     # Use the components library.
-    library = f"/{Dirs.COMPONENTS_PATH}"
+    library: str = f"/{Dirs.COMPONENTS_PATH}"
 
 
     # The function that creates the component.
     # The function that creates the component.
     component_fn: Callable[..., Component] = Component.create
     component_fn: Callable[..., Component] = Component.create

+ 1 - 1
reflex/components/core/upload.py

@@ -157,7 +157,7 @@ def _on_drop_spec(files: Var):
 class UploadFilesProvider(Component):
 class UploadFilesProvider(Component):
     """AppWrap component that provides a dict of selected files by ID via useContext."""
     """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"
     tag: str = "UploadFilesProvider"