Skip to content

Commit

Permalink
style: str type annotation no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
THEGOLDENPRO committed Aug 23, 2024
1 parent 926973e commit b0af747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async def info() -> InfoData:
async def random_(request: Request, category: Optional[str] = None) -> FileResponse:
"""Returns a random book."""
if category is None:
category: str = random.choice(programming_books.categories)
category = random.choice(programming_books.categories)

book = programming_books.random_book(category)

Expand Down

0 comments on commit b0af747

Please sign in to comment.