Skip to content
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.3
rev: v0.5.6
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.2
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py310-plus]
Expand All @@ -25,7 +25,7 @@ repos:
- id: check-toml
- id: check-yaml
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
rev: v2.3.0
hooks:
- id: codespell
args: [
Expand Down
2 changes: 1 addition & 1 deletion mesa_frames/concrete/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_agents_of_type(self, agent_type: type) -> "AgentSetDF":
The AgentSetDF of the specified type.
"""
for agentset in self._agents._agentsets:
if agent_type == type(agentset):
if isinstance(agentset, agent_type):
return agentset
raise ValueError(f"No agents of type {agent_type} found in the model.")

Expand Down