Skip to content

Commit

Permalink
use python3.7+ typing in model_builder and cp_model
Browse files Browse the repository at this point in the history
  • Loading branch information
lperron committed Jul 22, 2023
1 parent 9a5c7e8 commit 1135c58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ortools/linear_solver/python/model_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,8 +1005,8 @@ def new_var_series(
if not name.isidentifier():
raise ValueError("name={} is not a valid identifier".format(name))
if (
isinstance(lower_bounds, NumberT)
and isinstance(upper_bounds, NumberT)
mbn.is_a_number(lower_bounds)
and mbn.is_a_number(upper_bounds)
and lower_bounds > upper_bounds
):
raise ValueError(
Expand Down

0 comments on commit 1135c58

Please sign in to comment.