FastAPI - Dependency Injection
Identify the error in this FastAPI dependency usage:
def get_limit(limit: int = 10):
return limit
@app.get("/items")
async def read_items(limit = Depends(get_limit(limit=20))):
return {"limit": limit}