Skip to content

Commit

Permalink
Merge pull request #259 from DimitriPapadopoulos/object
Browse files Browse the repository at this point in the history
Inheriting `object` is implicit in Python 3
  • Loading branch information
CPBridge committed Oct 11, 2023
2 parents 523be18 + f2388a1 commit d8e4358
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/highdicom/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
logger = logging.getLogger(__name__)


class CIELabColor(object):
class CIELabColor:

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

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


class ColorManager(object):
class ColorManager:

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

Expand Down
2 changes: 1 addition & 1 deletion src/highdicom/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _stop_after_group_2(tag: pydicom.tag.BaseTag, vr: str, length: int) -> bool:
return tag.group > 2


class ImageFileReader(object):
class ImageFileReader:

"""Reader for DICOM datasets representing Image Information Entities.
Expand Down
8 changes: 4 additions & 4 deletions src/highdicom/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def _create_inv_affine_transformation_matrix(
)


class PixelToReferenceTransformer(object):
class PixelToReferenceTransformer:

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


class ReferenceToPixelTransformer(object):
class ReferenceToPixelTransformer:

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


class ImageToReferenceTransformer(object):
class ImageToReferenceTransformer:

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


class ReferenceToImageTransformer(object):
class ReferenceToImageTransformer:

"""Class for transforming coordinates from reference to image space.
Expand Down

0 comments on commit d8e4358

Please sign in to comment.