Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #198

Merged
merged 2 commits into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.5
rev: v0.3.5
hooks:
# Run the linter.
- id: ruff
Expand All @@ -14,7 +14,7 @@ repos:
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py38-plus]
Expand Down
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
Loading