Skip to content

Commit d8e4358

Browse files
authored
Merge pull request #259 from DimitriPapadopoulos/object
Inheriting `object` is implicit in Python 3
2 parents 523be18 + f2388a1 commit d8e4358

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/highdicom/color.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
logger = logging.getLogger(__name__)
1818

1919

20-
class CIELabColor(object):
20+
class CIELabColor:
2121

2222
"""Class to represent a color value in CIELab color space."""
2323

@@ -67,7 +67,7 @@ def value(self) -> Tuple[int, int, int]:
6767
return self._value
6868

6969

70-
class ColorManager(object):
70+
class ColorManager:
7171

7272
"""Class for color management using ICC profiles."""
7373

src/highdicom/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def _stop_after_group_2(tag: pydicom.tag.BaseTag, vr: str, length: int) -> bool:
217217
return tag.group > 2
218218

219219

220-
class ImageFileReader(object):
220+
class ImageFileReader:
221221

222222
"""Reader for DICOM datasets representing Image Information Entities.
223223

src/highdicom/spatial.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def _create_inv_affine_transformation_matrix(
198198
)
199199

200200

201-
class PixelToReferenceTransformer(object):
201+
class PixelToReferenceTransformer:
202202

203203
"""Class for transforming pixel indices to reference coordinates.
204204
@@ -338,7 +338,7 @@ def __call__(self, indices: np.ndarray) -> np.ndarray:
338338
return reference_coordinates[:3, :].T
339339

340340

341-
class ReferenceToPixelTransformer(object):
341+
class ReferenceToPixelTransformer:
342342

343343
"""Class for transforming reference coordinates to pixel indices.
344344
@@ -481,7 +481,7 @@ def __call__(self, coordinates: np.ndarray) -> np.ndarray:
481481
return np.around(pixel_matrix_coordinates[:3, :].T).astype(int)
482482

483483

484-
class ImageToReferenceTransformer(object):
484+
class ImageToReferenceTransformer:
485485

486486
"""Class for transforming coordinates from image to reference space.
487487
@@ -619,7 +619,7 @@ def __call__(self, coordinates: np.ndarray) -> np.ndarray:
619619
return reference_coordinates[:3, :].T
620620

621621

622-
class ReferenceToImageTransformer(object):
622+
class ReferenceToImageTransformer:
623623

624624
"""Class for transforming coordinates from reference to image space.
625625

0 commit comments

Comments
 (0)