Skip to content

Commit fbd23c2

Browse files
committed
typing
1 parent b4f164e commit fbd23c2

File tree

1 file changed

+3
-0
lines changed
  • sentry_sdk/integrations/openai_agents

1 file changed

+3
-0
lines changed

sentry_sdk/integrations/openai_agents/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
if TYPE_CHECKING:
1111
from typing import Any
1212
from typing import Callable
13+
from typing import Union
1314
from agents import Usage
1415

1516
try:
@@ -163,9 +164,11 @@ def _set_output_data(span, result):
163164

164165

165166
def safe_serialize(data):
167+
# type: (Any) -> str
166168
"""Safely serialize to a readable string."""
167169

168170
def serialize_item(item):
171+
# type: (Any) -> Union[str, dict[Any, Any], list[Any], tuple[Any, ...]]
169172
if callable(item):
170173
try:
171174
module = getattr(item, "__module__", None)

0 commit comments

Comments
 (0)