Skip to content

Commit 638dc87

Browse files
pre-commit-ci[bot]EwoutH
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 78dee0c commit 638dc87

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mesa/agent.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def __init__(self, model: M, *args, **kwargs) -> None:
6060
"""
6161
super().__init__(*args, **kwargs)
6262

63-
6463
self.model: M = model
6564
self.unique_id: int = next(self._ids[model])
6665
self.pos: Position | None = None

mesa/model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ def __init__(
112112
self._agents_by_type: dict[
113113
type[A], AgentSet[A]
114114
] = {} # a dict with an agentset for each class of agents
115-
self._all_agents: AgentSet[A] = AgentSet([], random=self.random) # an agenset with all agents
115+
self._all_agents: AgentSet[A] = AgentSet(
116+
[], random=self.random
117+
) # an agenset with all agents
116118

117119
def _wrapped_step(self, *args: Any, **kwargs: Any) -> None:
118120
"""Automatically increments time and steps after calling the user's step method."""

0 commit comments

Comments
 (0)