Skip to content

Commit 17cfaf6

Browse files
committed
fix: use str(annotation)
1 parent 62e9900 commit 17cfaf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def __post_init__(self):
175175
if params:
176176
first_param = params[0]
177177
annotation = first_param.annotation
178-
self._takes_ctx = 'RunContext' in annotation
178+
self._takes_ctx = 'RunContext' in str(annotation)
179179

180180
expected_partial_index = 2 if self._takes_ctx else 1
181181
self._takes_partial = len(params) > expected_partial_index

0 commit comments

Comments
 (0)