Skip to content

Commit cee1173

Browse files
committed
Borked a typing import
1 parent e6cdb18 commit cee1173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def _capture_exception(exc: "Any", manual_span_cleanup: bool = True) -> None:
150150

151151

152152
def _has_attr_and_is_int(
153-
token_usage: Union["CompletionUsage", "ResponseUsage"], attr_name: str
153+
token_usage: "Union[CompletionUsage, ResponseUsage]", attr_name: str
154154
) -> bool:
155155
return hasattr(token_usage, attr_name) and isinstance(
156156
getattr(token_usage, attr_name, None), int

0 commit comments

Comments
 (0)