We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59cacf8 commit a70f3c8Copy full SHA for a70f3c8
examples/pydantic_ai_examples/bank_support.py
@@ -26,7 +26,7 @@ async def customer_name(cls, *, id: int) -> str | None:
26
27
@classmethod
28
async def customer_balance(cls, *, id: int, include_pending: bool) -> float:
29
- if id == 123:
+ if id == 123 and include_pending:
30
return 123.45
31
else:
32
raise ValueError('Customer not found')
0 commit comments