Skip to content

Commit

Permalink
Fix return type should be BoundingBox
Browse files Browse the repository at this point in the history
The return type of these three methods is set to None, but it returns a BoundingBox.
  • Loading branch information
robvdl committed Aug 24, 2024
1 parent 6cf3d24 commit f52c5d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/data_morph/data/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(
def __repr__(self) -> str:
return f'<{self.__class__.__name__} name={self.name} scaled={self._scaled}>'

def _derive_data_bounds(self) -> None:
def _derive_data_bounds(self) -> BoundingBox:
"""
Derive bounds based on the data.
Expand All @@ -81,7 +81,7 @@ def _derive_data_bounds(self) -> None:
]
)

def _derive_morphing_bounds(self) -> None:
def _derive_morphing_bounds(self) -> BoundingBox:
"""
Derive morphing bounds based on the data.
Expand All @@ -99,7 +99,7 @@ def _derive_morphing_bounds(self) -> None:
morph_bounds.adjust_bounds(x=x_offset, y=y_offset)
return morph_bounds

def _derive_plotting_bounds(self) -> None:
def _derive_plotting_bounds(self) -> BoundingBox:
"""
Derive plotting bounds based on the morphing bounds.
Expand Down

0 comments on commit f52c5d3

Please sign in to comment.