Skip to content

Commit b4fe32e

Browse files
committed
refactor(asyncio): update type casting for session maker to remove redundancy
1 parent 00872a3 commit b4fe32e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

advanced_alchemy/config/asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def create_session_maker(self) -> "Callable[[], AsyncSession]":
155155
)
156156
self.session_maker = routing_maker
157157
else:
158-
self.session_maker = cast("Callable[[], AsyncSession]", super().create_session_maker()) # pyright: ignore
158+
self.session_maker = cast("Callable[[], AsyncSession]", super().create_session_maker()) # type: ignore[redundant-cast]
159159

160160
if isinstance(self.session_maker, async_sessionmaker):
161161
session_maker = cast(

0 commit comments

Comments
 (0)