Skip to content

Commit

Permalink
Typing updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Nov 18, 2024
1 parent 8c95373 commit 83cc345
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions maps4fs/generator/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -68,15 +68,15 @@ 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.
Args:
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
Expand Down

0 comments on commit 83cc345

Please sign in to comment.