Skip to content

Commit 17fd0bb

Browse files
committed
more surprise ruff issues??
1 parent 92fa0d7 commit 17fd0bb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

mesa/visualization/space_renderer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def draw_propertylayer(self, propertylayer_portrayal: Callable | dict):
217217
Exception: If no property layers are found on the space.
218218
"""
219219
# Import here to avoid circular imports
220-
from mesa.visualization.components import PropertyLayerStyle
220+
from mesa.visualization.components import PropertyLayerStyle # noqa: PLC0415
221221

222222
def _dict_to_callable(portrayal_dict):
223223
"""Convert legacy dict portrayal to callable.

tests/test_import_namespace.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ def test_import():
66
77
See https://github.com/projectmesa/mesa/pull/1294.
88
"""
9-
import mesa
10-
from mesa.space import MultiGrid
9+
import mesa # noqa: PLC0415
10+
from mesa.space import MultiGrid # noqa: PLC0415
1111

1212
_ = mesa.space.MultiGrid
1313
_ = MultiGrid
1414

15-
from mesa.datacollection import DataCollector
15+
from mesa.datacollection import DataCollector # noqa: PLC0415
1616

1717
_ = DataCollector
1818
_ = mesa.DataCollector
1919

20-
from mesa.batchrunner import batch_run
20+
from mesa.batchrunner import batch_run # noqa: PLC0415
2121

2222
_ = batch_run
2323
_ = mesa.batch_run

0 commit comments

Comments
 (0)