Skip to content

Commit fc55e04

Browse files
mypy
1 parent b13cfbe commit fc55e04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sentry_sdk/integrations/pydantic_ai/patches/agent_run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
raise DidNotEnable("pydantic-ai not installed")
1616

1717
if TYPE_CHECKING:
18-
from typing import Any, Callable, Optional
18+
from typing import Any, Callable, Optional, Union
1919

2020

2121
class _StreamingContextManagerWrapper:
@@ -37,7 +37,7 @@ def __init__(
3737
self.model_settings = model_settings
3838
self.is_streaming = is_streaming
3939
self._isolation_scope: "Any" = None
40-
self._span: "Optional[sentry_sdk.tracing.Span, sentry_sdk.traces.StreamedSpan]" = None
40+
self._span: "Optional[Union[sentry_sdk.tracing.Span, sentry_sdk.traces.StreamedSpan]]" = None
4141
self._result: "Any" = None
4242

4343
async def __aenter__(self) -> "Any":

0 commit comments

Comments
 (0)