forked from sr2/cloud-api
minor: ruff formatter
All changes are either: - Correcting tabs - Adding/removing line breaks - Adding trailing commas
This commit is contained in:
parent
b2e5dd2ebb
commit
c689ac1e10
91 changed files with 1710 additions and 689 deletions
|
|
@ -6,6 +6,7 @@ Exports:
|
|||
- user_model_query_dependency: user_model: Gets user model from db, if it exists. Uses user_id from query param
|
||||
- user_model_body_dependency: user_model: Gets user model from db, if it exists. Uses user_id from request body.
|
||||
"""
|
||||
|
||||
from typing import Annotated
|
||||
from fastapi import Depends, Query
|
||||
|
||||
|
|
@ -28,6 +29,7 @@ async def get_user_model_claims(claims: claims_dependency, db: db_dependency):
|
|||
|
||||
return user_model
|
||||
|
||||
|
||||
user_model_claims_dependency = Annotated[type[User], Depends(get_user_model_claims)]
|
||||
|
||||
|
||||
|
|
@ -38,6 +40,7 @@ async def get_user_model_query(db: db_dependency, user_id: Annotated[int, Query(
|
|||
|
||||
return user_model
|
||||
|
||||
|
||||
user_model_query_dependency = Annotated[type[User], Depends(get_user_model_query)]
|
||||
|
||||
|
||||
|
|
@ -48,4 +51,5 @@ async def get_user_model_body(db: db_dependency, request_model: UserIDMixin):
|
|||
|
||||
return user_model
|
||||
|
||||
|
||||
user_model_body_dependency = Annotated[type[User], Depends(get_user_model_body)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue