Skip to content

Commit d545a5a

Browse files
fix typing errors
1 parent a06e816 commit d545a5a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

sentry_sdk/integrations/cloud_resource_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import json
2-
import urllib3 # type: ignore
2+
import urllib3
33

44
from sentry_sdk.integrations import Integration
55
from sentry_sdk.api import set_context
@@ -80,7 +80,7 @@ def _is_aws(cls):
8080
if r.status != 200:
8181
return False
8282

83-
cls.aws_token = r.data
83+
cls.aws_token = r.data.decode()
8484
return True
8585

8686
except Exception:

sentry_sdk/integrations/opentelemetry/span_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from sentry_sdk.utils import Dsn
2727
from sentry_sdk._types import TYPE_CHECKING
2828

29-
from urllib3.util import parse_url as urlparse # type: ignore
29+
from urllib3.util import parse_url as urlparse
3030

3131
if TYPE_CHECKING:
3232
from typing import Any

sentry_sdk/transport.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import print_function
22

33
import io
4-
import urllib3 # type: ignore
4+
import urllib3
55
import certifi
66
import gzip
77
import time
@@ -26,7 +26,7 @@
2626
from typing import Union
2727
from typing import DefaultDict
2828

29-
from urllib3.poolmanager import PoolManager # type: ignore
29+
from urllib3.poolmanager import PoolManager
3030
from urllib3.poolmanager import ProxyManager
3131

3232
from sentry_sdk._types import Event, EndpointType
@@ -186,7 +186,7 @@ def record_lost_event(
186186
self._discarded_events[data_category, reason] += quantity
187187

188188
def _update_rate_limits(self, response):
189-
# type: (urllib3.HTTPResponse) -> None
189+
# type: (urllib3.BaseHTTPResponse) -> None
190190

191191
# new sentries with more rate limit insights. We honor this header
192192
# no matter of the status code to update our internal rate limits.

0 commit comments

Comments
 (0)