From 0db2b07dc65768863bcddebe8d218c195db32eef Mon Sep 17 00:00:00 2001 From: SUPREME Date: Sun, 31 May 2026 12:49:13 +0530 Subject: [PATCH] docs: add module-level docstring to types module Documents the internal type aliases used throughout FastAPI, including DecoratedCallable, UnionType, ModelNameMap, and DependencyCacheKey. --- fastapi/types.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fastapi/types.py b/fastapi/types.py index 1fb86e13b1..9bab3ffd2a 100644 --- a/fastapi/types.py +++ b/fastapi/types.py @@ -1,3 +1,11 @@ +""" +Internal type aliases for FastAPI. + +Provides shared type definitions used throughout the framework, including +the decorated callable type variable, union type compatibility shim, and +Pydantic model name mapping types. +""" + import types from collections.abc import Callable from enum import Enum