Skip to content

Commit

Permalink
split asserts
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Jan 31, 2024
1 parent 797d67c commit c8c326a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ def all_children(ir_type, kwargs):
# it's a bit annoying (but completely feasible) to implement the cases
# other than "both sides bounded" here. We haven't needed to yet because
# in practice we don't struggled with unbounded integer generation.
assert min_value is not None and max_value is not None
assert min_value is not None
assert max_value is not None

if weights is None:
yield from range(min_value, max_value + 1)
Expand Down

0 comments on commit c8c326a

Please sign in to comment.