Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
adamamer20 committed Aug 12, 2024
2 parents 8daedca + 35b0edf commit 6403eca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 6403eca

Please sign in to comment.