chore: updated base DAO find_by_id to return generic type (#25726)

This commit is contained in:
Zef Lin 2023-10-23 07:46:01 -07:00 committed by GitHub
parent ed87470bcc
commit 4aef771072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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`
"""