Skip to content

Glossary: Building APIs with FastAPI

Type hint

Also written: type hints

A Python annotation giving a value's type, such as `product_id: int`. In FastAPI, type hints are instructions that decide how values are converted and checked.

Where the book teaches it

Related terms

AnnotatedValidation