Skip to content

Commit 6101fcd

Browse files
committed
set type of Learner1D as annotated
1 parent 181ebb3 commit 6101fcd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adaptive/learner/learner1D.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def __init__(
303303
# The precision in 'x' below which we set losses to 0.
304304
self._dx_eps = 2 * max(np.abs(bounds)) * np.finfo(float).eps
305305

306-
self.bounds = list(bounds)
306+
self.bounds = tuple(bounds)
307307
self.__missing_bounds = set(self.bounds) # cache of missing bounds
308308

309309
self._vdim: int | None = None

0 commit comments

Comments
 (0)