Skip to content

Commit 4f7db3d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cdfaa6c commit 4f7db3d

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

mesa/experimental/cell_space/cell_agent.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from typing import TYPE_CHECKING, Any, Protocol, TypeVar
44

5-
from mesa.agent import Agent
65
from mesa.experimental.cell_space.discrete_space import DiscreteSpace
76

87
if TYPE_CHECKING:
@@ -15,11 +14,9 @@ class DiscreteSpaceAgent(Protocol[T]):
1514
cell: T | None
1615
space: DiscreteSpace[T]
1716

18-
def move_to(self, cell: T) -> None:
19-
...
17+
def move_to(self, cell: T) -> None: ...
2018

21-
def move_relative(self, directions: tuple[int, ...], distance: int = 1):
22-
...
19+
def move_relative(self, directions: tuple[int, ...], distance: int = 1): ...
2320

2421

2522
class CellAgent:

mesa/experimental/cell_space/discrete_space.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ def __init__(
4343
def cutoff_empties(self):
4444
return 7.953 * len(self._cells) ** 0.384
4545

46-
def _connect_single_cell(self, cell: T):
47-
...
46+
def _connect_single_cell(self, cell: T): ...
4847

4948
@cached_property
5049
def all_cells(self):

mesa/experimental/cell_space/grid.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,9 @@ def _connect_cells(self) -> None:
5151
else:
5252
self._connect_cells_nd()
5353

54-
def _connect_cells_2d(self) -> None:
55-
...
54+
def _connect_cells_2d(self) -> None: ...
5655

57-
def _connect_cells_nd(self) -> None:
58-
...
56+
def _connect_cells_nd(self) -> None: ...
5957

6058
def _validate_parameters(self):
6159
if not all(isinstance(dim, int) and dim > 0 for dim in self.dimensions):

0 commit comments

Comments
 (0)