Skip to content

Commit b446b77

Browse files
committed
Format codes
1 parent dee0d27 commit b446b77

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sqlmodel/ext/asyncio/async_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __new__(
2525
name: str,
2626
bases: Tuple[Type[Any], ...],
2727
class_dict: Dict[str, Any],
28-
**kwargs: Any
28+
**kwargs: Any,
2929
) -> Any:
3030
awaitable_fields: Dict[str, AwaitableFieldInfo] = {}
3131
dict_for_sqlmodel = {}

tests/test_awaitable_field.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from sqlalchemy.exc import MissingGreenlet
55
from sqlalchemy.ext.asyncio import create_async_engine
66
from sqlalchemy.util.concurrency import greenlet_spawn
7-
87
from sqlmodel import Field, Relationship, SQLModel, select
98
from sqlmodel.ext.asyncio.async_model import AsyncSQLModel, AwaitableField
109
from sqlmodel.ext.asyncio.session import AsyncSession
@@ -31,7 +30,7 @@ class Hero(AsyncSQLModel, table=True):
3130

3231
# loading expired attribute will raise MissingGreenlet error
3332
with pytest.raises(MissingGreenlet):
34-
hero_deadpond.name
33+
hero_deadpond.name # noqa: B018
3534

3635
name = await hero_deadpond.awt_name
3736
assert name == "Deadpond"
@@ -69,7 +68,7 @@ class Hero(AsyncSQLModel, table=True):
6968

7069
# loading lazy loading attribute will raise MissingGreenlet error
7170
with pytest.raises(MissingGreenlet):
72-
hero.team
71+
hero.team # noqa: B018
7372

7473
team = await hero.awt_team
7574
assert team

0 commit comments

Comments
 (0)