From 6db46a206e9a4bf0c270d7adf309ca1378061fea Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Mon, 11 Nov 2024 13:58:19 -0800 Subject: [PATCH 1/2] Remove variable in type expression error --- ci_template/cijob/templates/template.py | 2 +- dashboard/dashboard/templates/template.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci_template/cijob/templates/template.py b/ci_template/cijob/templates/template.py index 81ddb21..a7bdb96 100644 --- a/ci_template/cijob/templates/template.py +++ b/ci_template/cijob/templates/template.py @@ -51,7 +51,7 @@ def template( description: str | None = None, meta: str | None = None, script_tags: list[rx.Component] | None = None, - on_load: rx.event.EventHandler | list[rx.event.EventHandler] | None = None, + on_load: rx.EventHandler | list[rx.EventHandler] | None = None, ) -> Callable[[Callable[[], rx.Component]], rx.Component]: """The template for each page of the app. diff --git a/dashboard/dashboard/templates/template.py b/dashboard/dashboard/templates/template.py index 55ac07a..facda8d 100644 --- a/dashboard/dashboard/templates/template.py +++ b/dashboard/dashboard/templates/template.py @@ -51,7 +51,7 @@ def template( description: str | None = None, meta: str | None = None, script_tags: list[rx.Component] | None = None, - on_load: rx.event.EventHandler | list[rx.event.EventHandler] | None = None, + on_load: rx.EventHandler | list[rx.EventHandler] | None = None, ) -> Callable[[Callable[[], rx.Component]], rx.Component]: """The template for each page of the app. From 9d9afd328c38f663fc23ed4653adf1656b31a6a4 Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Mon, 11 Nov 2024 14:06:51 -0800 Subject: [PATCH 2/2] Remove extraneous kwargs from `rx.App` --- dashboard/dashboard/dashboard.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dashboard/dashboard/dashboard.py b/dashboard/dashboard/dashboard.py index 85503f1..fbba710 100644 --- a/dashboard/dashboard/dashboard.py +++ b/dashboard/dashboard/dashboard.py @@ -11,6 +11,4 @@ app = rx.App( style=styles.base_style, stylesheets=styles.base_stylesheets, - title="Dashboard Template", - description="A dashboard template for Reflex.", )