From 1addbb95b0c6f776708c543f721dda9e04f46a4c Mon Sep 17 00:00:00 2001 From: Stan Soldatov Date: Thu, 9 Jan 2025 00:48:34 +0100 Subject: [PATCH] mypy updates. --- maps4fs/generator/component.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maps4fs/generator/component.py b/maps4fs/generator/component.py index ab3a310..bb540bb 100644 --- a/maps4fs/generator/component.py +++ b/maps4fs/generator/component.py @@ -188,7 +188,7 @@ def get_bbox( self, coordinates: tuple[float, float] | None = None, distance: int | None = None, - ) -> tuple[int, int, int, int]: + ) -> tuple[float, float, float, float]: """Calculates the bounding box of the map from the coordinates and the height and width of the map. If coordinates and distance are not provided, the instance variables are used. @@ -200,7 +200,7 @@ def get_bbox( map in all directions. Defaults to None. Returns: - tuple[int, int, int, int]: The bounding box of the map. + tuple[float, float, float, float]: The bounding box of the map. """ coordinates = coordinates or self.coordinates distance = distance or int(self.map_rotated_size / 2)