You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows using things like from fastapi.responses import JSONResponse instead of from starlette.responses import JSONResponse.
It's mainly syntax sugar, a convenience for developer experience.
Now Request, Response, WebSocket, status can be imported directly from fastapi as in from fastapi import Response. This is because those are frequently used, to use the request directly, to set headers and cookies, to get status codes, etc.
Documentation changes in many places, but new docs and noticeable improvements: