Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and rht committed Apr 1, 2024
1 parent 52e7c84 commit 574e3a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions mesa_geo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Core Objects: GeoSpace, GeoAgent
"""

import datetime

from mesa_geo import visualization
Expand Down
11 changes: 5 additions & 6 deletions mesa_geo/raster_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,16 +243,15 @@ def attributes(self) -> set[str]:
return self._attributes

@overload
def __getitem__(self, index: int) -> list[Cell]:
...
def __getitem__(self, index: int) -> list[Cell]: ...

@overload
def __getitem__(self, index: tuple[int | slice, int | slice]) -> Cell | list[Cell]:
...
def __getitem__(
self, index: tuple[int | slice, int | slice]
) -> Cell | list[Cell]: ...

@overload
def __getitem__(self, index: Sequence[Coordinate]) -> list[Cell]:
...
def __getitem__(self, index: Sequence[Coordinate]) -> list[Cell]: ...

def __getitem__(
self, index: int | Sequence[Coordinate] | tuple[int | slice, int | slice]
Expand Down

0 comments on commit 574e3a6

Please sign in to comment.