Skip to content

Commit cd15bff

Browse files
authored
ref: Remove obsolete object as superclass (getsentry#3480)
1 parent 1541240 commit cd15bff

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

sentry_sdk/integrations/dramatiq.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def inner(event, hint):
140140
return inner
141141

142142

143-
class DramatiqMessageExtractor(object):
143+
class DramatiqMessageExtractor:
144144
def __init__(self, message):
145145
# type: (Message) -> None
146146
self.message_data = dict(message.asdict())

sentry_sdk/integrations/logging.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def sentry_patched_callhandlers(self, record):
111111
logging.Logger.callHandlers = sentry_patched_callhandlers # type: ignore
112112

113113

114-
class _BaseHandler(logging.Handler, object):
114+
class _BaseHandler(logging.Handler):
115115
COMMON_RECORD_ATTRS = frozenset(
116116
(
117117
"args",

sentry_sdk/profiler/continuous_profiler.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def get_profiler_id():
164164
return _scheduler.profiler_id
165165

166166

167-
class ContinuousScheduler(object):
167+
class ContinuousScheduler:
168168
mode = "unknown" # type: ContinuousProfilerMode
169169

170170
def __init__(self, frequency, options, sdk_info, capture_func):
@@ -410,7 +410,7 @@ def teardown(self):
410410
PROFILE_BUFFER_SECONDS = 10
411411

412412

413-
class ProfileBuffer(object):
413+
class ProfileBuffer:
414414
def __init__(self, options, sdk_info, buffer_size, capture_func):
415415
# type: (Dict[str, Any], SDKInfo, int, Callable[[Envelope], None]) -> None
416416
self.options = options
@@ -458,7 +458,7 @@ def flush(self):
458458
self.capture_func(envelope)
459459

460460

461-
class ProfileChunk(object):
461+
class ProfileChunk:
462462
def __init__(self):
463463
# type: () -> None
464464
self.chunk_id = uuid.uuid4().hex

sentry_sdk/scope.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def wrapper(self, *args, **kwargs):
154154
return wrapper # type: ignore
155155

156156

157-
class Scope(object):
157+
class Scope:
158158
"""The scope holds extra information that should be sent with all
159159
events that belong to it.
160160
"""

sentry_sdk/scrubber.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
]
6060

6161

62-
class EventScrubber(object):
62+
class EventScrubber:
6363
def __init__(
6464
self, denylist=None, recursive=False, send_default_pii=False, pii_denylist=None
6565
):

tests/integrations/beam/test_beam.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def process(self):
4545
return self.fn()
4646

4747

48-
class B(A, object):
48+
class B(A):
4949
def fa(self, x, element=False, another_element=False):
5050
if x or (element and not another_element):
5151
# print(self.r)

tests/integrations/ray/test_ray.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def test_ray_actor():
172172
)
173173

174174
@ray.remote
175-
class Counter(object):
175+
class Counter:
176176
def __init__(self):
177177
self.n = 0
178178

0 commit comments

Comments
 (0)