diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-03-12 11:02:07 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-04-08 10:00:16 -0700 |
| commit | 390ea4624c2fbfecf831f1c7f34ec796ff410de7 (patch) | |
| tree | 347a332c2730d923550ad590d271a6af1f0027d3 /mesonbuild/mconf.py | |
| parent | 00864ca481c4e29d7f5c648a1e12b934dfa642d2 (diff) | |
| download | meson-390ea4624c2fbfecf831f1c7f34ec796ff410de7.tar.gz | |
coredata: move MutableKeyedOptionDict to options
Diffstat (limited to 'mesonbuild/mconf.py')
| -rw-r--r-- | mesonbuild/mconf.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index 0811062f3..cf2162232 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -190,9 +190,10 @@ class Conf: items = [l[i] if l[i] else ' ' * four_column[i] for i in range(4)] mlog.log(*items) - def split_options_per_subproject(self, options: T.Union[coredata.MutableKeyedOptionDictType, options.OptionStore]) -> T.Dict[str, 'coredata.MutableKeyedOptionDictType']: - result: T.Dict[str, 'coredata.MutableKeyedOptionDictType'] = {} - for k, o in options.items(): + def split_options_per_subproject(self, opts: T.Union[options.MutableKeyedOptionDictType, options.OptionStore] + ) -> T.Dict[str, options.MutableKeyedOptionDictType]: + result: T.Dict[str, options.MutableKeyedOptionDictType] = {} + for k, o in opts.items(): if k.subproject: self.all_subprojects.add(k.subproject) result.setdefault(k.subproject, {})[k] = o @@ -228,7 +229,7 @@ class Conf: self._add_line(mlog.normal_yellow(section + ':'), '', '', '') self.print_margin = 2 - def print_options(self, title: str, opts: T.Union[coredata.MutableKeyedOptionDictType, options.OptionStore]) -> None: + def print_options(self, title: str, opts: T.Union[options.MutableKeyedOptionDictType, options.OptionStore]) -> None: if not opts: return if title: @@ -264,10 +265,10 @@ class Conf: test_option_names = {OptionKey('errorlogs'), OptionKey('stdsplit')} - dir_options: 'coredata.MutableKeyedOptionDictType' = {} - test_options: 'coredata.MutableKeyedOptionDictType' = {} - core_options: 'coredata.MutableKeyedOptionDictType' = {} - module_options: T.Dict[str, 'coredata.MutableKeyedOptionDictType'] = collections.defaultdict(dict) + dir_options: options.MutableKeyedOptionDictType = {} + test_options: options.MutableKeyedOptionDictType = {} + core_options: options.MutableKeyedOptionDictType = {} + module_options: T.Dict[str, options.MutableKeyedOptionDictType] = collections.defaultdict(dict) for k, v in self.coredata.optstore.options.items(): if k in dir_option_names: dir_options[k] = v |
