Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete object as superclass #3480

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading