From 2650ad73a090cc83d9ef914ff768a7d14233976b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 07:13:28 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- benchmarks/Schelling/schelling.py | 1 - mesa/spaces/discrete_space.py | 2 +- mesa/visualization/components/matplotlib.py | 2 +- tests/test_cell_space.py | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/benchmarks/Schelling/schelling.py b/benchmarks/Schelling/schelling.py index d0b09caa50b..4378bc061ba 100644 --- a/benchmarks/Schelling/schelling.py +++ b/benchmarks/Schelling/schelling.py @@ -4,7 +4,6 @@ from mesa import Model from mesa.spaces import CellAgent, OrthogonalMooreGrid -from mesa.time import RandomActivation class SchellingAgent(CellAgent): diff --git a/mesa/spaces/discrete_space.py b/mesa/spaces/discrete_space.py index 5262d24ccbb..07aabf701d5 100644 --- a/mesa/spaces/discrete_space.py +++ b/mesa/spaces/discrete_space.py @@ -7,9 +7,9 @@ from random import Random from typing import Any, Generic, TypeVar +from mesa.space import PropertyLayer from mesa.spaces.cell import Cell from mesa.spaces.cell_collection import CellCollection -from mesa.space import PropertyLayer T = TypeVar("T", bound=Cell) diff --git a/mesa/visualization/components/matplotlib.py b/mesa/visualization/components/matplotlib.py index 898d2900830..fd5f0e24761 100644 --- a/mesa/visualization/components/matplotlib.py +++ b/mesa/visualization/components/matplotlib.py @@ -11,8 +11,8 @@ from matplotlib.figure import Figure import mesa -from mesa.spaces import VoronoiGrid from mesa.space import PropertyLayer +from mesa.spaces import VoronoiGrid from mesa.visualization.utils import update_counter diff --git a/tests/test_cell_space.py b/tests/test_cell_space.py index 26af30fa79c..084b1f73386 100644 --- a/tests/test_cell_space.py +++ b/tests/test_cell_space.py @@ -6,6 +6,7 @@ import pytest from mesa import Model +from mesa.space import PropertyLayer from mesa.spaces import ( Cell, CellAgent, @@ -18,7 +19,6 @@ OrthogonalVonNeumannGrid, VoronoiGrid, ) -from mesa.space import PropertyLayer def test_orthogonal_grid_neumann():