diff --git a/solara/components/component_vue.py b/solara/components/component_vue.py index 6c8a4b764..48c04a4d0 100644 --- a/solara/components/component_vue.py +++ b/solara/components/component_vue.py @@ -70,7 +70,6 @@ def component_vue(vue_path: str, vuetify=True) -> Callable[[Callable[P, None]], """ def decorator(func: Callable[P, None]): - VueWidgetSolaraSub = _widget_vue(vue_path, vuetify=vuetify)(func) def wrapper(*args, **kwargs): diff --git a/solara/server/app.py b/solara/server/app.py index 53c76e837..62e0ac4bd 100644 --- a/solara/server/app.py +++ b/solara/server/app.py @@ -379,7 +379,6 @@ def _run_app( pathname: str, render_context: reacton.core._RenderContext = None, ): - # app.signal_hook_install() main_object = app_script.run() app_state = pickle.loads(app_state) if app_state is not None else None diff --git a/solara/server/cdn_helper.py b/solara/server/cdn_helper.py index dc7c2b627..cd5c87500 100644 --- a/solara/server/cdn_helper.py +++ b/solara/server/cdn_helper.py @@ -54,7 +54,6 @@ def get_data(base_cache_dir: pathlib.Path, path): def get_path(base_cache_dir: pathlib.Path, path) -> pathlib.Path: - parts = path.replace("\\", "/").split("/") store_path = path if len(parts) != 1 else pathlib.Path(path) / "__main.js" cache_path = base_cache_dir / store_path diff --git a/solara/server/settings.py b/solara/server/settings.py index 973b88981..51adaa834 100644 --- a/solara/server/settings.py +++ b/solara/server/settings.py @@ -18,6 +18,7 @@ else: prefix = sys.prefix + class ThemeVariant(str, Enum): light = "light" dark = "dark" diff --git a/solara/server/starlette.py b/solara/server/starlette.py index 1dba21a13..e12fa69ea 100644 --- a/solara/server/starlette.py +++ b/solara/server/starlette.py @@ -121,7 +121,6 @@ def signal_stop(self): self.server.lifespan.should_exit = True def serve(self): - from uvicorn.config import Config from uvicorn.server import Server diff --git a/solara/website/pages/api/__init__.py b/solara/website/pages/api/__init__.py index a48e8a23b..d124275e4 100644 --- a/solara/website/pages/api/__init__.py +++ b/solara/website/pages/api/__init__.py @@ -162,7 +162,6 @@ def Page(): ): rv.CardTitle(children=[route.label]) with rv.CardText(): - with solara.Link(path): if not image_path.exists(): pass diff --git a/tests/unit/autorouting_test.py b/tests/unit/autorouting_test.py index 50fa3a962..17f12aafe 100644 --- a/tests/unit/autorouting_test.py +++ b/tests/unit/autorouting_test.py @@ -88,7 +88,6 @@ def test_routes_portal(): def test_routes_examples_api_button(): - routes = solara.autorouting.generate_routes(solara.website.pages.api.button) assert len(routes) == 1 @@ -103,7 +102,6 @@ def test_routes_examples_api_button(): def test_routes_examples_docs(): - routes = solara.autorouting.generate_routes(solara.website.pages.docs) assert len(routes) == 15 diff --git a/tests/unit/lab/toestand_test.py b/tests/unit/lab/toestand_test.py index 27d771f2e..0a3a413a4 100644 --- a/tests/unit/lab/toestand_test.py +++ b/tests/unit/lab/toestand_test.py @@ -432,7 +432,6 @@ def App(): def test_simplest(): - settings = State({"bears": 2, "theme": "dark"}) unsub = settings.subscribe(print) # noqa @@ -703,6 +702,7 @@ def Test(): # bear_store.increase_population() # assert rc._find(v.Alert).widget.children[0] == "2 bears around here" + # storage_key = bear_store.storage_key # redis_dict = bear_store._storage.observable_dict # redis_dict[storage_key] = {"type": "brown", "count": 3} diff --git a/tests/unit/telemetry_tests.py b/tests/unit/telemetry_tests.py index 22ae24b9c..59be23825 100644 --- a/tests/unit/telemetry_tests.py +++ b/tests/unit/telemetry_tests.py @@ -8,7 +8,6 @@ def test_telemetry_basic(mocker): - post: unittest.mock.MagicMock = mocker.spy(requests, "post") solara.server.telemetry.track("test_event", {"test_prop": "test_value"}) post.assert_called_once()