Browse Source
pyright --createstub strips out IncEx reexport line added by #14641, because it comes from module that it thinks is private. This patch makes public at fastapi level.pull/14925/head
1 changed files with 3 additions and 2 deletions
@ -1,12 +1,13 @@ |
|||||
import types |
import types |
||||
from collections.abc import Callable |
from collections.abc import Callable |
||||
from enum import Enum |
from enum import Enum |
||||
from typing import Any, TypeVar, Union |
from typing import Any, TypeAlias, TypeVar, Union |
||||
|
|
||||
from pydantic import BaseModel |
from pydantic import BaseModel |
||||
from pydantic.main import IncEx as IncEx |
from pydantic.main import IncEx as _IncEx |
||||
|
|
||||
DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any]) |
DecoratedCallable = TypeVar("DecoratedCallable", bound=Callable[..., Any]) |
||||
UnionType = getattr(types, "UnionType", Union) |
UnionType = getattr(types, "UnionType", Union) |
||||
ModelNameMap = dict[type[BaseModel] | type[Enum], str] |
ModelNameMap = dict[type[BaseModel] | type[Enum], str] |
||||
DependencyCacheKey = tuple[Callable[..., Any] | None, tuple[str, ...], str] |
DependencyCacheKey = tuple[Callable[..., Any] | None, tuple[str, ...], str] |
||||
|
IncEx: TypeAlias = _IncEx |
||||
|
|||||
Loading…
Reference in new issue