Skip to content

Commit c60ebea

Browse files
committed
Be explicit about which models we are returning
1 parent a4dd055 commit c60ebea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rctab/routers/accounting/usage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import calendar
44
import datetime
55
import logging
6-
from typing import Any, Dict, List
6+
from typing import Dict, List
77
from uuid import UUID
88

99
import jwt
@@ -239,7 +239,7 @@ async def post_usage(
239239

240240

241241
@router.get("/all-usage", response_model=List[Usage])
242-
async def get_usage(_: UserRBAC = Depends(token_admin_verified)) -> Any:
242+
async def get_usage(_: UserRBAC = Depends(token_admin_verified)) -> List[Usage]:
243243
"""Get all usage data."""
244244
usage_query = select([accounting_models.usage])
245245
rows = [dict(x) for x in await database.fetch_all(usage_query)]

0 commit comments

Comments
 (0)