techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.8K
active users

RecursiveNeuron :verified:

🚀 Fastapi new version feature:
Response Model - Return Type

That's awesome 😎

▶️ You can declare the type used for the response by annotating the path operation function return type

▶️ You can use type annotations the same way you would for input data in function parameters, you can use Pydantic models, lists, dictionaries, scalar values like integers, booleans, etc.

fastapi.tiangolo.com/tutorial/

Via @FastAPI