Skip to content

Commit 4b6cccd

Browse files
committed
fix
1 parent ef9b1a2 commit 4b6cccd

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

app/repositories/base.py

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
import abc
2-
from typing import (Any, Generic, List, NoReturn, Optional, Sequence, Type,
3-
TypeAlias, TypeVar)
2+
from typing import (
3+
Any,
4+
Generic,
5+
List,
6+
NoReturn,
7+
Optional,
8+
Sequence,
9+
Type,
10+
TypeAlias,
11+
TypeVar,
12+
)
413

514
import sqlmodel as sm
615
from sqlmodel.ext.asyncio.session import AsyncSession
716

8-
AbstractModel = TypeVar('AbstractModel', bound=sm.SQLModel)
17+
AbstractModel = TypeVar("AbstractModel", bound=sm.SQLModel)
918
WhereClauses: TypeAlias = Optional[List[sm.DefaultClause | bool]]
1019

1120

@@ -53,4 +62,3 @@ async def retrieve_many(
5362
async def delete(self, instance: AbstractModel) -> NoReturn:
5463
await self.session.delete(instance)
5564
await self.session.flush()
56-
await self.session.commit()

0 commit comments

Comments
 (0)