|
|
@ -1,6 +1,6 @@ |
|
|
import types |
|
|
import types |
|
|
from enum import Enum |
|
|
from enum import Enum |
|
|
from typing import Any, Callable, Optional, TypeVar, Union, Protocol |
|
|
from typing import Any, Callable, Optional, Protocol, TypeVar, Union |
|
|
|
|
|
|
|
|
from pydantic import BaseModel |
|
|
from pydantic import BaseModel |
|
|
|
|
|
|
|
|
@ -10,5 +10,6 @@ ModelNameMap = dict[Union[type[BaseModel], type[Enum]], str] |
|
|
IncEx = Union[set[int], set[str], dict[int, Any], dict[str, Any]] |
|
|
IncEx = Union[set[int], set[str], dict[int, Any], dict[str, Any]] |
|
|
DependencyCacheKey = tuple[Optional[Callable[..., Any]], tuple[str, ...], str] |
|
|
DependencyCacheKey = tuple[Optional[Callable[..., Any]], tuple[str, ...], str] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DependencyOverridesProvider(Protocol): |
|
|
class DependencyOverridesProvider(Protocol): |
|
|
dependency_overrides: dict[Callable[..., Any], Any] |
|
|
dependency_overrides: dict[Callable[..., Any], Any] |
|
|
|