From 4aef7710725a1813a43b438454a7b1ddb8b8ebf8 Mon Sep 17 00:00:00 2001 From: Zef Lin Date: Mon, 23 Oct 2023 07:46:01 -0700 Subject: [PATCH] chore: updated base DAO find_by_id to return generic type (#25726) --- superset/daos/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/daos/base.py b/superset/daos/base.py index a69f07da5..d2c1842c1 100644 --- a/superset/daos/base.py +++ b/superset/daos/base.py @@ -62,7 +62,7 @@ class BaseDAO(Generic[T]): model_id: str | int, session: Session = None, skip_base_filter: bool = False, - ) -> Model | None: + ) -> T | None: """ Find a model by id, if defined applies `base_filter` """