Skip to content

Commit ff0b84f

Browse files
committed
Update formatting and remove unnecessary file
1 parent 0810c36 commit ff0b84f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.envrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/minizinc/instance.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,11 @@ async def diverse_solutions(
342342
with inst.branch() as child:
343343
# Add constraints to the model that sets the decision variables to the reference solution, if provided
344344
if reference_solution:
345-
if isinstance(reference_solution, Result) and is_dataclass(
346-
reference_solution.solution
347-
) and not isinstance(reference_solution.solution, type):
345+
if (
346+
isinstance(reference_solution, Result)
347+
and is_dataclass(reference_solution.solution)
348+
and not isinstance(reference_solution.solution, type)
349+
):
348350
solution_obj = asdict(reference_solution.solution)
349351
else:
350352
assert isinstance(reference_solution, dict)

0 commit comments

Comments
 (0)