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 62e9900 commit 17cfaf6Copy full SHA for 17cfaf6
pydantic_ai_slim/pydantic_ai/_output.py
@@ -175,7 +175,7 @@ def __post_init__(self):
175
if params:
176
first_param = params[0]
177
annotation = first_param.annotation
178
- self._takes_ctx = 'RunContext' in annotation
+ self._takes_ctx = 'RunContext' in str(annotation)
179
180
expected_partial_index = 2 if self._takes_ctx else 1
181
self._takes_partial = len(params) > expected_partial_index
0 commit comments