We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd371a6 commit 4ea2d9bCopy full SHA for 4ea2d9b
1 file changed
pyomo/contrib/alternative_solutions/solution.py
@@ -14,11 +14,13 @@
14
def _custom_dict_factory(data):
15
return {k: _to_dict(v) for k, v in data}
16
17
+
18
if sys.version_info >= (3, 10):
19
dataclass_kwargs = dict(kw_only=True)
20
else:
21
dataclass_kwargs = dict()
22
23
24
@dataclasses.dataclass(**dataclass_kwargs)
25
class Variable:
26
value: float = nan
0 commit comments