File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1559,7 +1559,7 @@ class NetworkGrid:
1559
1559
""" Returns a bool of the contents of a cell."""
1560
1560
return self.G.nodes[node_id]["agent"] == self.default_val()
1561
1561
1562
- def get_cell_list_contents(self, cell_list: list[int]) -> list[Agent]:
1562
+ def get_cell_list_contents(self, cell_list: list[int] | nx.Graph ) -> list[Agent]:
1563
1563
""" Returns a list of the agents contained in the nodes identified
1564
1564
in `cell_list`; nodes with empty content are excluded.
1565
1565
"""
@@ -1569,7 +1569,7 @@ class NetworkGrid:
1569
1569
""" Returns a list of all the agents in the network."""
1570
1570
return self.get_cell_list_contents(self.G)
1571
1571
1572
- def iter_cell_list_contents(self, cell_list: list[int]) -> Iterator[Agent]:
1572
+ def iter_cell_list_contents(self, cell_list: list[int] | nx.Graph ) -> Iterator[Agent]:
1573
1573
""" Returns an iterator of the agents contained in the nodes identified
1574
1574
in `cell_list`; nodes with empty content are excluded.
1575
1575
"""
You can’t perform that action at this time.
0 commit comments