Skip to content

Commit 2c16f9f

Browse files
committed
chore(docs): format fastapi examples
1 parent 1a3cdf4 commit 2c16f9f

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

examples/fastapi/fastapi_filters.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ async def list_authors(
6262
filters: Annotated[
6363
list[filters.FilterTypes],
6464
Depends(
65-
alchemy.provide_filters({
66-
"id_filter": UUID,
67-
"pagination_type": "limit_offset",
68-
"search": "name",
69-
"search_ignore_case": True,
70-
})
65+
alchemy.provide_filters(
66+
{
67+
"id_filter": UUID,
68+
"pagination_type": "limit_offset",
69+
"search": "name",
70+
"search_ignore_case": True,
71+
}
72+
)
7173
),
7274
],
7375
) -> service.OffsetPagination[AuthorModel]:

examples/fastapi/fastapi_service.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,14 @@ async def list_authors(
8989
filters: Annotated[
9090
list[filters.FilterTypes],
9191
Depends(
92-
alchemy.provide_filters({
93-
"id_filter": UUID,
94-
"pagination_type": "limit_offset",
95-
"search": "name",
96-
"search_ignore_case": True,
97-
})
92+
alchemy.provide_filters(
93+
{
94+
"id_filter": UUID,
95+
"pagination_type": "limit_offset",
96+
"search": "name",
97+
"search_ignore_case": True,
98+
}
99+
)
98100
),
99101
],
100102
) -> service.OffsetPagination[AuthorModel]:

0 commit comments

Comments
 (0)