Skip to content

Commit 8d6b623

Browse files
committed
fix: replace math.inf with imported inf for consistency and clarity
1 parent 5df435b commit 8d6b623

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mesa_frames/concrete/space.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def step(self):
4242
refer to the class docstring.
4343
"""
4444

45-
import math
45+
from math import inf
4646
from collections.abc import Callable, Sequence
4747
from typing import Literal
4848

@@ -218,5 +218,5 @@ def _update_capacity_cells(self, cells: pl.DataFrame) -> np.ndarray:
218218
@property
219219
def remaining_capacity(self) -> int | Infinity:
220220
if not self._capacity:
221-
return math.inf
221+
return inf
222222
return int(self._cells_capacity.sum())

0 commit comments

Comments
 (0)