File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 11from typing import (
22 Any ,
33 Callable ,
4+ Concatenate ,
45 Dict ,
56 Mapping ,
67 Optional ,
1617from sqlalchemy .engine .interfaces import _CoreAnyExecuteParams
1718from sqlalchemy .engine .result import Result , ScalarResult , TupleResult
1819from sqlalchemy .ext .asyncio import AsyncSession as _AsyncSession
19- from sqlalchemy .orm import Session as _Session
2020from sqlalchemy .ext .asyncio .result import _ensure_sync_result
2121from sqlalchemy .ext .asyncio .session import _EXECUTE_OPTIONS
22+ from sqlalchemy .orm import Session as _Session
2223from sqlalchemy .orm ._typing import OrmExecuteOptionsParameter
2324from sqlalchemy .sql .base import Executable as _Executable
2425from sqlalchemy .util .concurrency import greenlet_spawn
2526from typing_extensions import deprecated
26- from typing import Concatenate
2727
2828from ...orm .session import Session
2929from ...sql .base import Executable
3232_TSelectParam = TypeVar ("_TSelectParam" , bound = Any )
3333
3434
35-
3635class AsyncSession (_AsyncSession ):
3736 sync_session_class : Type [Session ] = Session
3837 sync_session : Session
@@ -159,7 +158,6 @@ async def run_sync[**P, T](
159158 * arg : P .args ,
160159 ** kw : P .kwargs ,
161160 ) -> T :
162-
163161 base_fn = cast (Callable [Concatenate [_Session , P ], T ], fn )
164162
165163 return await super ().run_sync (
You can’t perform that action at this time.
0 commit comments