minor: type hint
This commit is contained in:
parent
d8abe17618
commit
a86cfea65a
1 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ from typing import Annotated
|
||||||
from fastapi import Depends
|
from fastapi import Depends
|
||||||
|
|
||||||
from src.user.dependencies import user_model_claims_dependency
|
from src.user.dependencies import user_model_claims_dependency
|
||||||
|
from src.user.models import User
|
||||||
from src.organisation.dependencies import org_model_query_dependency, org_model_body_dependency
|
from src.organisation.dependencies import org_model_query_dependency, org_model_body_dependency
|
||||||
from src.organisation.models import Organisation as Org
|
from src.organisation.models import Organisation as Org
|
||||||
|
|
||||||
|
|
@ -69,4 +70,4 @@ async def user_model_super_admin(user_model: user_model_claims_dependency):
|
||||||
raise UnauthorizedException()
|
raise UnauthorizedException()
|
||||||
|
|
||||||
|
|
||||||
super_admin_dependency = Annotated[bool, Depends(user_model_super_admin)]
|
super_admin_dependency = Annotated[type[User], Depends(user_model_super_admin)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue