Skip to content

Commit 7897225

Browse files
committed
Fixing non-None timeout bug
1 parent 72199b3 commit 7897225

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/vroom/input/input.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,7 @@ def solve(
376376
timeout:
377377
Stop the solving process after a given amount of time.
378378
"""
379-
assert timeout is None or isinstance(timeout, (None, timedelta)), (
380-
f"unknown timeout type: {timeout}"
381-
)
379+
assert timeout is None or isinstance(timeout, timedelta), f"unknown timeout type: {timeout}"
382380
solution = Solution(
383381
self._solve(
384382
exploration_level=int(exploration_level),

0 commit comments

Comments
 (0)