Skip to content

Commit 587e61e

Browse files
committed
Remove redundant explicit inheritance from object per review comment.
1 parent 0a3430e commit 587e61e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

opentelemetry-instrumentation/src/opentelemetry/instrumentation/_blobupload/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ResponseHook(abc.ABC):
4040
pass
4141
4242
43-
class FooInstrumentationLibrary(object):
43+
class FooInstrumentationLibrary:
4444
4545
def __init__(self,
4646
# ...,

opentelemetry-instrumentation/src/opentelemetry/instrumentation/_blobupload/api/blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from typing import Mapping, Dict, Optional
2020

2121

22-
class Blob(object):
22+
class Blob:
2323
"""Represents an opaque binary object and associated metadata.
2424
2525
This object conteptually has the following properties:

opentelemetry-instrumentation/src/opentelemetry/instrumentation/_blobupload/api/content_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Helper used to handle the possibility of optional 'magic' dependency
2020
# being unavailable for guessing the MIME type of raw bytes.
21-
class _FallBackModule(object):
21+
class _FallBackModule:
2222
"""Class that is shaped like the portion of 'magic' we need."""
2323

2424
def from_buffer(self, raw_bytes, mime=True):

opentelemetry-instrumentation/src/opentelemetry/instrumentation/_blobupload/utils/simple_blob_uploader_adaptor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _with_content_type(blob: Blob) -> Blob:
4747
return Blob(blob.raw_bytes, content_type=content_type, labels=blob.labels)
4848

4949

50-
class _UploadAction(object):
50+
class _UploadAction:
5151
"""Represents the work to be done in the background to upload a blob."""
5252

5353
def __init__(self, simple_uploader, uri, blob):

0 commit comments

Comments
 (0)