chore: updated base DAO find_by_id to return generic type (#25726)
This commit is contained in:
parent
ed87470bcc
commit
4aef771072
|
|
@ -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`
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in New Issue