Skip to content

Commit 0899cab

Browse files
🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
1 parent 189be8e commit 0899cab

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

sqlmodel/ext/asyncio/session.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import (
22
Any,
33
Callable,
4+
Concatenate,
45
Dict,
56
Mapping,
67
Optional,
@@ -16,14 +17,13 @@
1617
from sqlalchemy.engine.interfaces import _CoreAnyExecuteParams
1718
from sqlalchemy.engine.result import Result, ScalarResult, TupleResult
1819
from sqlalchemy.ext.asyncio import AsyncSession as _AsyncSession
19-
from sqlalchemy.orm import Session as _Session
2020
from sqlalchemy.ext.asyncio.result import _ensure_sync_result
2121
from sqlalchemy.ext.asyncio.session import _EXECUTE_OPTIONS
22+
from sqlalchemy.orm import Session as _Session
2223
from sqlalchemy.orm._typing import OrmExecuteOptionsParameter
2324
from sqlalchemy.sql.base import Executable as _Executable
2425
from sqlalchemy.util.concurrency import greenlet_spawn
2526
from typing_extensions import deprecated
26-
from typing import Concatenate
2727

2828
from ...orm.session import Session
2929
from ...sql.base import Executable
@@ -32,7 +32,6 @@
3232
_TSelectParam = TypeVar("_TSelectParam", bound=Any)
3333

3434

35-
3635
class 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(

0 commit comments

Comments
 (0)