Skip to content

fix: FastAPI 0.89.0 upgrade

Mario Oenning requested to merge moson/aurweb:fix-fastapi-0.89.0 into master

With the new 0.89.0 version, FastAPI introduced the possibility of
defining the "response_model" via type annotations for functions.

A "response_model" must inherit from the pydantic "BaseModel" class.

Now we have a couple of places where "starlette.responses.Response"
is annotated as the return type. 🤔

-> Removing those return type annotations...

References:
https://fastapi.tiangolo.com/release-notes/
https://github.com/tiangolo/fastapi/pull/1436

Signed-off-by: moson-mo mo-son@mailbox.org

Merge request reports