Skip to content

Commit

Permalink
ref: Remove obsolete object as superclass (#3480)
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana authored Aug 30, 2024
1 parent 1541240 commit cd15bff
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/dramatiq.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def inner(event, hint):
return inner


class DramatiqMessageExtractor(object):
class DramatiqMessageExtractor:
def __init__(self, message):
# type: (Message) -> None
self.message_data = dict(message.asdict())
Expand Down
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def sentry_patched_callhandlers(self, record):
logging.Logger.callHandlers = sentry_patched_callhandlers # type: ignore


class _BaseHandler(logging.Handler, object):
class _BaseHandler(logging.Handler):
COMMON_RECORD_ATTRS = frozenset(
(
"args",
Expand Down
6 changes: 3 additions & 3 deletions sentry_sdk/profiler/continuous_profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def get_profiler_id():
return _scheduler.profiler_id


class ContinuousScheduler(object):
class ContinuousScheduler:
mode = "unknown" # type: ContinuousProfilerMode

def __init__(self, frequency, options, sdk_info, capture_func):
Expand Down Expand Up @@ -410,7 +410,7 @@ def teardown(self):
PROFILE_BUFFER_SECONDS = 10


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


class ProfileChunk(object):
class ProfileChunk:
def __init__(self):
# type: () -> None
self.chunk_id = uuid.uuid4().hex
Expand Down
2 changes: 1 addition & 1 deletion sentry_sdk/scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def wrapper(self, *args, **kwargs):
return wrapper # type: ignore


class Scope(object):
class Scope:
"""The scope holds extra information that should be sent with all
events that belong to it.
"""
Expand Down
2 changes: 1 addition & 1 deletion sentry_sdk/scrubber.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
]


class EventScrubber(object):
class EventScrubber:
def __init__(
self, denylist=None, recursive=False, send_default_pii=False, pii_denylist=None
):
Expand Down
2 changes: 1 addition & 1 deletion tests/integrations/beam/test_beam.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def process(self):
return self.fn()


class B(A, object):
class B(A):
def fa(self, x, element=False, another_element=False):
if x or (element and not another_element):
# print(self.r)
Expand Down
2 changes: 1 addition & 1 deletion tests/integrations/ray/test_ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def test_ray_actor():
)

@ray.remote
class Counter(object):
class Counter:
def __init__(self):
self.n = 0

Expand Down

0 comments on commit cd15bff

Please sign in to comment.