Skip to content

Commit

Permalink
[config] Better default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometheus3375 committed Jul 19, 2024
1 parent 468b819 commit 3e1c36b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solve/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def read_config(filepath: str, /) -> Config:
with open(filepath, 'rb') as f:
data = tomllib.load(f)

key_set_name = data.get('key_set', 'mixed')
key_set_name = data.get('key_set', KeySetName.MIXED.value)
assert key_set_name in KeySetName, \
f'key_set must be either {KeySetName.MIXED.value!r} or {KeySetName.DOUBLE.value!r}'

Expand Down

0 comments on commit 3e1c36b

Please sign in to comment.