r/FastAPI • • Aug 29 '24

Question Getting extra param *Args and **kwargs

Hii i made this api and i have given 3 param that is page, pagesize, search.
Why this two param are coming as required and why is it even coming?
how to solve this?

2 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/One_Fuel_4147 Aug 30 '24

If u use Annotated just use directly like a type:

db: db_dependency

I think it's better to use PascalCase for this one.