style: 统一 Ruff 代码格式
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
"""Read YYB's official order list after a payment is completed."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any
|
||||
@@ -70,7 +71,9 @@ def order_completion_states(document: dict[str, Any]) -> dict[str, bool]:
|
||||
}
|
||||
|
||||
|
||||
def find_completed_order(document: dict[str, Any], previous_states: dict[str, bool]) -> dict[str, Any] | None:
|
||||
def find_completed_order(
|
||||
document: dict[str, Any], previous_states: dict[str, bool]
|
||||
) -> dict[str, Any] | None:
|
||||
"""Find an order that appeared or transitioned to completed after the QR display."""
|
||||
for item in document.get("list", []):
|
||||
if not isinstance(item, dict):
|
||||
|
||||
Reference in New Issue
Block a user