Skip to content

Commit 36ad606

Browse files
BYKclaude
andcommitted
fix: Remove unused type:ignore on async method overrides
With AsyncHttpTransport always defined as a real class, mypy properly sees the class hierarchy and no longer flags _send_envelope and _send_request as incompatible overrides. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b392bc4 commit 36ad606

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ def _get_header_value(
856856
) -> "Optional[str]":
857857
return _get_httpcore_header_value(response, header)
858858

859-
async def _send_envelope(self: "Self", envelope: "Envelope") -> None: # type: ignore[override]
859+
async def _send_envelope(self: "Self", envelope: "Envelope") -> None:
860860
_prepared_envelope = self._prepare_envelope(envelope)
861861
if _prepared_envelope is not None:
862862
envelope, body, headers = _prepared_envelope
@@ -868,7 +868,7 @@ async def _send_envelope(self: "Self", envelope: "Envelope") -> None: # type: i
868868
)
869869
return None
870870

871-
async def _send_request( # type: ignore[override]
871+
async def _send_request(
872872
self: "Self",
873873
body: bytes,
874874
headers: "Dict[str, str]",

0 commit comments

Comments
 (0)