Skip to content

Commit 8177c67

Browse files
committed
Fix lint
1 parent 8085349 commit 8177c67

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/advanced/transaction.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ async with async_session.begin() as session:
204204

205205
```python
206206
async def register_user(
207-
session: AsyncSession,
208-
user_data: UserCreate,
209-
profile_data: ProfileCreate = None
207+
session: AsyncSession,
208+
user_data: UserCreate,
209+
profile_data: ProfileCreate = None
210210
):
211211
"""用户注册,包含用户和资料创建"""
212212
async with session.begin():
@@ -230,9 +230,9 @@ async def register_user(
230230

231231
```python
232232
async def process_order(
233-
session: AsyncSession,
234-
order_data: OrderCreate,
235-
order_items: list[OrderItemCreate]
233+
session: AsyncSession,
234+
order_data: OrderCreate,
235+
order_items: list[OrderItemCreate]
236236
):
237237
"""处理订单和订单项"""
238238
async with session.begin():

0 commit comments

Comments
 (0)