]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🏷️ Re-export `IncEx` type from Pydantic instead of duplicating it (#14641)
authormvanderlee <918128+mvanderlee@users.noreply.github.com>
Wed, 4 Feb 2026 13:34:01 +0000 (14:34 +0100)
committerGitHub <noreply@github.com>
Wed, 4 Feb 2026 13:34:01 +0000 (14:34 +0100)
fastapi/types.py

index d3e980cb439d6e7936efa53129c5246831a0a429..1c3a6de749f065bd6bef9dc8b38de94d517c2466 100644 (file)
@@ -3,9 +3,9 @@ from enum import Enum
 from typing import Any, Callable, Optional, TypeVar, Union
 
 from pydantic import BaseModel
+from pydantic.main import IncEx as IncEx
 
 DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any])
 UnionType = getattr(types, "UnionType", Union)
 ModelNameMap = dict[Union[type[BaseModel], type[Enum]], str]
-IncEx = Union[set[int], set[str], dict[int, Any], dict[str, Any]]
 DependencyCacheKey = tuple[Optional[Callable[..., Any]], tuple[str, ...], str]