no-mistakes(document): Document P0 auth batch; reconcile HARDENING statuses; lint fixes
This commit is contained in:
@@ -226,7 +226,7 @@ async def list_tickets(
|
||||
"""
|
||||
if page_size is not None and limit is not None and page_size != limit:
|
||||
raise HTTPException(
|
||||
status_code=422, # noqa: PLR2004 — param ``status`` shadows fastapi.status here
|
||||
status_code=422, # ``status`` query param shadows fastapi.status in this scope
|
||||
detail="Provide either 'page_size' or 'limit', not both",
|
||||
)
|
||||
effective_page_size = page_size if page_size is not None else (limit or DEFAULT_PAGE_SIZE)
|
||||
|
||||
Reference in New Issue
Block a user