We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80c2ee6 commit f84ffaeCopy full SHA for f84ffae
sentry_sdk/integrations/pydantic_ai/__init__.py
@@ -28,7 +28,7 @@
28
from pydantic_ai.capabilities import Hooks # type: ignore
29
30
31
-def register_hooks(hooks: "Hooks"):
+def register_hooks(hooks: "Hooks") -> None:
32
"""
33
Creates hooks for chat model calls and register the hooks by adding the hooks to the `capabilities` argument passed to `Agent.__init__()`.
34
@@ -153,7 +153,7 @@ def setup_once() -> None:
153
_patch_tool_execution()
154
155
try:
156
- from pydantic_ai.capabilities import Hooks # type: ignore
+ from pydantic_ai.capabilities import Hooks
157
except ImportError:
158
Hooks = None
159
PydanticAIIntegration.are_request_hooks_available = False
0 commit comments