Skip to content

Commit e134084

Browse files
committed
Do not parse DZN data by default
1 parent e9fa6e5 commit e134084

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Changed
1616
``Result`` object and the new ``check_solution`` function can check the
1717
correctness of an individual solution in the form of a data class object or a
1818
dictionary.
19+
- ``Model.add_file`` no longer has its ``parse_data`` flag enabled by default.
1920

2021
Fixed
2122
^^^^^

src/minizinc/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def __getitem__(self, key: str) -> Any:
144144
"""
145145
return self._data.__getitem__(key)
146146

147-
def add_file(self, file: ParPath, parse_data: bool = True) -> None:
147+
def add_file(self, file: ParPath, parse_data: bool = False) -> None:
148148
"""Adds a MiniZinc file (``.mzn``, ``.dzn``, or ``.json``) to the Model.
149149
150150
Args:

0 commit comments

Comments
 (0)