Skip to content

Commit

Permalink
Improve typing for _HexGrid
Browse files Browse the repository at this point in the history
  • Loading branch information
rht committed Jan 26, 2024
1 parent 2d5ee33 commit 5aa45cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesa/space.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ class _HexGrid:
def get_neighborhood(
self, pos: Coordinate, include_center: bool = False, radius: int = 1
) -> list[Coordinate]:
) -> Sequence[Coordinate]:
"""Return a list of coordinates that are in the
neighborhood of a certain point. To calculate the neighborhood
for a HexGrid the parity of the x coordinate of the point is
Expand Down

0 comments on commit 5aa45cc

Please sign in to comment.