Skip to content

Commit 6c08d77

Browse files
committed
cast to any to make typechecking happy
1 parent 1b73d4c commit 6c08d77

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sentry_sdk/integrations/logging.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,7 @@ def _capture_log_from_record(self, client, record):
355355
scope = sentry_sdk.get_current_scope()
356356
otel_severity_number, otel_severity_text = _python_level_to_otel(record.levelno)
357357
project_root = client.options["project_root"]
358-
attrs = self._extra_from_record(
359-
record
360-
) # type: dict[str, str | bool | float | int]
358+
attrs = self._extra_from_record(record) # type: Any
361359
attrs["sentry.origin"] = "auto.logger.log"
362360
if isinstance(record.msg, str):
363361
attrs["sentry.message.template"] = record.msg

0 commit comments

Comments
 (0)