From f52c5d361e194e7a0ea693cd9c699a915cee4262 Mon Sep 17 00:00:00 2001 From: Rob van der Linde Date: Sat, 24 Aug 2024 22:42:53 +1200 Subject: [PATCH] Fix return type should be BoundingBox The return type of these three methods is set to None, but it returns a BoundingBox. --- src/data_morph/data/dataset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data_morph/data/dataset.py b/src/data_morph/data/dataset.py index b3a2c705..a7c74815 100644 --- a/src/data_morph/data/dataset.py +++ b/src/data_morph/data/dataset.py @@ -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. @@ -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. @@ -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.