Skip to content

Commit cf54d8f

Browse files
authored
fix: add missing type parameter to AsyncServiceT_co and SyncServiceT_… (#612)
Added missing `Any` type parameter to service providers.
1 parent e3f934d commit cf54d8f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

advanced_alchemy/extensions/fastapi/providers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@
6666
FilterConfigValues = Union[
6767
bool, str, list[str], type[Union[str, int]]
6868
] # Simplified compared to Litestar's UUID/int flexibility for now
69-
AsyncServiceT_co = TypeVar("AsyncServiceT_co", bound=SQLAlchemyAsyncRepositoryService[Any], covariant=True)
70-
SyncServiceT_co = TypeVar("SyncServiceT_co", bound=SQLAlchemySyncRepositoryService[Any], covariant=True)
69+
AsyncServiceT_co = TypeVar("AsyncServiceT_co", bound=SQLAlchemyAsyncRepositoryService[Any, Any], covariant=True)
70+
SyncServiceT_co = TypeVar("SyncServiceT_co", bound=SQLAlchemySyncRepositoryService[Any, Any], covariant=True)
7171
HashableValue = Union[str, int, float, bool, None]
7272
HashableType = Union[HashableValue, tuple[Any, ...], tuple[tuple[str, Any], ...], tuple[HashableValue, ...]]
7373

advanced_alchemy/extensions/litestar/providers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
BooleanOrNone = Optional[bool]
6464
SortOrder = Literal["asc", "desc"]
6565
SortOrderOrNone = Optional[SortOrder]
66-
AsyncServiceT_co = TypeVar("AsyncServiceT_co", bound=SQLAlchemyAsyncRepositoryService[Any], covariant=True)
67-
SyncServiceT_co = TypeVar("SyncServiceT_co", bound=SQLAlchemySyncRepositoryService[Any], covariant=True)
66+
AsyncServiceT_co = TypeVar("AsyncServiceT_co", bound=SQLAlchemyAsyncRepositoryService[Any, Any], covariant=True)
67+
SyncServiceT_co = TypeVar("SyncServiceT_co", bound=SQLAlchemySyncRepositoryService[Any, Any], covariant=True)
6868
HashableValue = Union[str, int, float, bool, None]
6969
HashableType = Union[HashableValue, tuple[Any, ...], tuple[tuple[str, Any], ...], tuple[HashableValue, ...]]
7070

0 commit comments

Comments
 (0)