Skip to content

Commit cf0c9b7

Browse files
committed
Add requiredFlags to Solver
1 parent 05193f8 commit cf0c9b7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ this project adheres to `Semantic Versioning <https://semver.org/>`_.
99
Unreleased_
1010
------------
1111

12+
Added
13+
^^^^^
14+
- Add ``requiredFlags`` field to the ``Solver`` data class.
15+
1216
Fixed
1317
^^^^^
1418
- Ignore extra (undocumented) fields from MiniZinc's ``--solvers-json`` output

src/minizinc/solver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ class Solver:
6262
to use"). The third string specifies the type of the argument
6363
(``int``, ``bool``, ``float`` or ``string``). The fourth string is
6464
the default value.
65+
requiredFlags (List[str]): *Currently undocumented in the MiniZinc
66+
documentation.*
6567
supportsMzn (bool): Whether the solver can run MiniZinc directly (i.e.,
6668
it implements its own compilation or interpretation of the model).
6769
supportsFzn (bool): Whether the solver can run FlatZinc. This should be
@@ -96,6 +98,7 @@ class Solver:
9698
tags: List[str] = field(default_factory=list)
9799
stdFlags: List[str] = field(default_factory=list)
98100
extraFlags: List[Tuple[str, str, str, str]] = field(default_factory=list)
101+
requiredFlags: List[str] = field(default_factory=list)
99102
supportsMzn: bool = False
100103
supportsFzn: bool = True
101104
supportsNL: bool = False

0 commit comments

Comments
 (0)