We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9950045 commit a6709c8Copy full SHA for a6709c8
fastapi_crudrouter/core/ormar.py
@@ -66,15 +66,15 @@ def __init__(
66
67
self._INTEGRITY_ERROR = self._get_integrity_error_type()
68
69
- def _get_all(self, *args: Any, **kwargs: Any) -> CALLABLE_LIST: # type: ignore
+ def _get_all(self, *args: Any, **kwargs: Any) -> CALLABLE_LIST:
70
async def route(
71
pagination: PAGINATION = self.pagination,
72
) -> List[Optional[Model]]:
73
skip, limit = pagination.get("skip"), pagination.get("limit")
74
query = self.schema.objects.offset(cast(int, skip))
75
if limit:
76
query = query.limit(limit)
77
- return await query.all()
+ return await query.all() # type: ignore
78
79
return route
80
0 commit comments