From 83cc345dc73048198a299da3c5abbcd7f4e04902 Mon Sep 17 00:00:00 2001 From: Stan Soldatov Date: Mon, 18 Nov 2024 03:08:41 +0100 Subject: [PATCH] Typing updates. --- maps4fs/generator/component.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maps4fs/generator/component.py b/maps4fs/generator/component.py index 02f1d2d7..17976c68 100644 --- a/maps4fs/generator/component.py +++ b/maps4fs/generator/component.py @@ -10,7 +10,7 @@ from maps4fs.generator.game import Game -# pylint: disable=R0801, R0903 +# pylint: disable=R0801, R0903, R0902 class Component: """Base class for all map generation components. @@ -68,7 +68,7 @@ def previews(self) -> list[str]: """ raise NotImplementedError - def get_bbox(self, project_utm: bool = False) -> tuple[float, float, float, float]: + def get_bbox(self, project_utm: bool = False) -> tuple[int, int, int, int]: """Calculates the bounding box of the map from the coordinates and the height and width of the map. @@ -76,7 +76,7 @@ def get_bbox(self, project_utm: bool = False) -> tuple[float, float, float, floa project_utm (bool, optional): Whether to project the bounding box to UTM. Returns: - tuple[float, float, float, float]: The bounding box of the map. + tuple[int, int, int, int]: The bounding box of the map. """ north, south, _, _ = ox.utils_geo.bbox_from_point( self.coordinates, dist=self.map_height / 2, project_utm=project_utm