Skip to content

Commit

Permalink
Add sanity check in MultiConfigOption
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Dec 10, 2024
1 parent f8558a4 commit dcc58db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/py_build_cmake/config/options/config_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def iter_set_sub_options(
def _verify(self, values: ValueReference):
if values.values is None:
return
assert self.default_index not in values.values
unknown_keys = set(values.values) - set(self.sub_options)
msg = ""
for k in sorted(unknown_keys):
Expand Down

0 comments on commit dcc58db

Please sign in to comment.