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 28, 2024
1 parent b8ff362 commit 9684be8
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 9684be8

Please sign in to comment.