Skip to content

Commit

Permalink
Update linting config to work with new mypy version
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed Dec 23, 2024
1 parent f6281f5 commit 42d75a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions sentry_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ def _prepare_event(

for key in "release", "environment", "server_name", "dist":
if event.get(key) is None and self.options[key] is not None:
event[key] = str(self.options[key]).strip() # type: ignore[literal-required]
event[key] = str(self.options[key]).strip()
if event.get("sdk") is None:
sdk_info = dict(SDK_INFO)
sdk_info["integrations"] = sorted(self.integrations.keys())
Expand Down Expand Up @@ -581,7 +581,7 @@ def _prepare_event(
self.transport.record_lost_event(
"before_send", data_category="error"
)
event = new_event # type: ignore
event = new_event

before_send_transaction = self.options["before_send_transaction"]
if (
Expand Down Expand Up @@ -611,7 +611,7 @@ def _prepare_event(
reason="before_send", data_category="span", quantity=spans_delta
)

event = new_event # type: ignore
event = new_event

return event

Expand Down
10 changes: 5 additions & 5 deletions sentry_sdk/integrations/rust_tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@


class RustTracingLevel(Enum):
Trace: str = "TRACE"
Debug: str = "DEBUG"
Info: str = "INFO"
Warn: str = "WARN"
Error: str = "ERROR"
Trace = "TRACE"
Debug = "DEBUG"
Info = "INFO"
Warn = "WARN"
Error = "ERROR"


class EventTypeMapping(Enum):
Expand Down

0 comments on commit 42d75a2

Please sign in to comment.