Отличие Depends от прямого вызова
Условие задачи
Разобрать пример на FastAPI. Преимущества реализации у Depends(get_current_user) по сравнению с прямым вызовом get_current_user().
python# FastAPI
Depends()
@route.get('...')
async def get_books(
current_user=Depends(get_current_user),
current_user=get_current_user()
)