This commit is contained in:
Nicolas Despres 2026-02-17 10:03:33 +00:00 committed by GitHub
commit d856e05d79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -1,12 +1,13 @@
import types
from collections.abc import Callable
from enum import Enum
from typing import Any, TypeVar, Union
from typing import Any, TypeAlias, TypeVar, Union
from pydantic import BaseModel
from pydantic.main import IncEx as IncEx
from pydantic.main import IncEx as _IncEx
DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any])
UnionType = getattr(types, "UnionType", Union)
ModelNameMap = dict[type[BaseModel] | type[Enum], str]
DependencyCacheKey = tuple[Callable[..., Any] | None, tuple[str, ...], str]
IncEx: TypeAlias = _IncEx