Skip to content

Commit

Permalink
Update formatting and remove unnecessary file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dekker1 committed Jan 16, 2025
1 parent 0810c36 commit ff0b84f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .envrc

This file was deleted.

8 changes: 5 additions & 3 deletions src/minizinc/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,11 @@ async def diverse_solutions(
with inst.branch() as child:
# Add constraints to the model that sets the decision variables to the reference solution, if provided
if reference_solution:
if isinstance(reference_solution, Result) and is_dataclass(
reference_solution.solution
) and not isinstance(reference_solution.solution, type):
if (
isinstance(reference_solution, Result)
and is_dataclass(reference_solution.solution)
and not isinstance(reference_solution.solution, type)
):
solution_obj = asdict(reference_solution.solution)
else:
assert isinstance(reference_solution, dict)
Expand Down

0 comments on commit ff0b84f

Please sign in to comment.