Skip to content

Commit

Permalink
mypy updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwatkot committed Jan 8, 2025
1 parent 3573877 commit 1addbb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maps4fs/generator/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)
Expand Down

0 comments on commit 1addbb9

Please sign in to comment.