fix: add type annotations to untyped query parameters (#73) #86

Open
Claude wants to merge 1 commits from issue/73-add-type-annotations-to-untyped-query-parameters into main
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ async def get_team_standings(team_id: int):
@router.patch("/{stan_id}", include_in_schema=PRIVATE_IN_SCHEMA)
@handle_db_errors
async def patch_standings(
stan_id,
stan_id: int,
wins: Optional[int] = None,
losses: Optional[int] = None,
token: str = Depends(oauth2_scheme),

View File

@ -36,7 +36,7 @@ class TransactionList(pydantic.BaseModel):
@router.get("")
@handle_db_errors
async def get_transactions(
season,
season: int,
team_abbrev: list = Query(default=None),
week_start: Optional[int] = 0,
week_end: Optional[int] = None,