get_session() function on each request that needs the session (as stated in route definition)Depends is something FastAPI uses to resolve those dependacies - and yes, di-flask works the same way
Start working on your projects and stop overthinking it.
If you want to learn how all this works internally, go read python source code 🤷♂