Skip to content

Commit 62e42f7

Browse files
committed
fix: fix lint
1 parent db9b89d commit 62e42f7

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

app/api/user.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async def get_profile_page(
2828

2929
# Load user with items for statistics
3030
result = await db.execute(
31-
select(User).options(selectinload(User.items)).where(User.id == user.id) # type: ignore[arg-type]
31+
select(User).options(selectinload(User.items)).where(User.id == user.id), # type: ignore[arg-type]
3232
)
3333
user_with_items = result.scalar_one()
3434

@@ -51,8 +51,8 @@ async def update_email(
5151
# Check if email is already taken
5252
existing_user = await db.execute(
5353
select(User).where(
54-
and_(User.email == email_data["email"], User.id != user.id) # type: ignore[arg-type]
55-
)
54+
and_(User.email == email_data["email"], User.id != user.id), # type: ignore[arg-type]
55+
),
5656
)
5757
if existing_user.scalar_one_or_none():
5858
raise HTTPException(status_code=400, detail="Email already registered")

app/tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ def event_loop():
5151
@pytest.fixture(scope="session")
5252
async def client() -> AsyncGenerator[AsyncClient, None]:
5353
async with AsyncClient(
54-
transport=ASGITransport(app=app), base_url="http://test"
54+
transport=ASGITransport(app=app),
55+
base_url="http://test",
5556
) as ac:
5657
yield ac
5758

0 commit comments

Comments
 (0)