Skip to content

Commit f84ffae

Browse files
linting
1 parent 80c2ee6 commit f84ffae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/pydantic_ai/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from pydantic_ai.capabilities import Hooks # type: ignore
2929

3030

31-
def register_hooks(hooks: "Hooks"):
31+
def register_hooks(hooks: "Hooks") -> None:
3232
"""
3333
Creates hooks for chat model calls and register the hooks by adding the hooks to the `capabilities` argument passed to `Agent.__init__()`.
3434
"""
@@ -153,7 +153,7 @@ def setup_once() -> None:
153153
_patch_tool_execution()
154154

155155
try:
156-
from pydantic_ai.capabilities import Hooks # type: ignore
156+
from pydantic_ai.capabilities import Hooks
157157
except ImportError:
158158
Hooks = None
159159
PydanticAIIntegration.are_request_hooks_available = False

0 commit comments

Comments
 (0)