Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions firedantic/_async/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def get_document_id(self):
@classmethod
async def find( # pylint: disable=too-many-arguments
cls: Type[TAsyncBareModel],
filter_: Optional[Dict[str, Union[str, dict]]] = None,
filter_: Optional[Dict[str, Union[str, int, float, bool, dict]]] = None,
order_by: Optional[_OrderBy] = None,
limit: Optional[int] = None,
offset: Optional[int] = None,
Expand Down Expand Up @@ -224,7 +224,7 @@ def _add_filter(
@classmethod
async def find_one(
cls: Type[TAsyncBareModel],
filter_: Optional[Dict[str, Union[str, dict]]] = None,
filter_: Optional[Dict[str, Union[str, int, float, bool, dict]]] = None,
order_by: Optional[_OrderBy] = None,
transaction: Optional[AsyncTransaction] = None,
) -> TAsyncBareModel:
Expand Down
4 changes: 2 additions & 2 deletions firedantic/_sync/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def get_document_id(self):
@classmethod
def find( # pylint: disable=too-many-arguments
cls: Type[TBareModel],
filter_: Optional[Dict[str, Union[str, dict]]] = None,
filter_: Optional[Dict[str, Union[str, int, float, bool, dict]]] = None,
order_by: Optional[_OrderBy] = None,
limit: Optional[int] = None,
offset: Optional[int] = None,
Expand Down Expand Up @@ -224,7 +224,7 @@ def _add_filter(
@classmethod
def find_one(
cls: Type[TBareModel],
filter_: Optional[Dict[str, Union[str, dict]]] = None,
filter_: Optional[Dict[str, Union[str, int, float, bool, dict]]] = None,
order_by: Optional[_OrderBy] = None,
transaction: Optional[Transaction] = None,
) -> TBareModel:
Expand Down