Skip to content

Commit f304bec

Browse files
mypy
1 parent 903bbbd commit f304bec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sentry_sdk/integrations/openai.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def _get_input_messages(
210210
def _commmon_set_input_data(
211211
span: "Span",
212212
kwargs: "dict[str, Any]",
213-
):
213+
) -> None:
214214
# Input attributes: Common
215215
set_data_normalized(span, SPANDATA.GEN_AI_SYSTEM, "openai")
216216

@@ -242,10 +242,10 @@ def _set_responses_api_input_data(
242242
span: "Span",
243243
kwargs: "dict[str, Any]",
244244
integration: "OpenAIIntegration",
245-
):
245+
) -> None:
246246
messages: "Optional[Union[ResponseInputParam, list[str]]]" = _get_input_messages(
247247
kwargs
248-
) # type: ignore
248+
)
249249

250250
if (
251251
messages is not None
@@ -269,7 +269,7 @@ def _set_completions_api_input_data(
269269
span: "Span",
270270
kwargs: "dict[str, Any]",
271271
integration: "OpenAIIntegration",
272-
):
272+
) -> None:
273273
messages: "Optional[Union[Iterable[ChatCompletionMessageParam], list[str]]]" = (
274274
_get_input_messages(kwargs)
275275
)
@@ -296,7 +296,7 @@ def _set_embeddings_input_data(
296296
span: "Span",
297297
kwargs: "dict[str, Any]",
298298
integration: "OpenAIIntegration",
299-
):
299+
) -> None:
300300
messages = _get_input_messages(kwargs)
301301

302302
if (

0 commit comments

Comments
 (0)