diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-02-26 12:47:48 -0800 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-02-27 23:33:39 +0200 |
| commit | d9f3f6c0b27476edc84ccddecb373af88fde1053 (patch) | |
| tree | 5d6790e0979d8478323743e90fd8d2205a9a70c5 /mesonbuild/modules/__init__.py | |
| parent | 9300c3af91373b129deaa0255a9eb2f1ab2b309e (diff) | |
| download | meson-d9f3f6c0b27476edc84ccddecb373af88fde1053.tar.gz | |
use ElementaryOptionValues instead of open coding... again
Diffstat (limited to 'mesonbuild/modules/__init__.py')
| -rw-r--r-- | mesonbuild/modules/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/modules/__init__.py b/mesonbuild/modules/__init__.py index f9374cc1d..fefe41a44 100644 --- a/mesonbuild/modules/__init__.py +++ b/mesonbuild/modules/__init__.py @@ -20,6 +20,7 @@ if T.TYPE_CHECKING: from ..interpreterbase import TYPE_var, TYPE_kwargs from ..programs import OverrideProgram from ..dependencies import Dependency + from ..options import ElementaryOptionValues class ModuleState: """Object passed to all module methods. @@ -132,7 +133,7 @@ class ModuleState: self._interpreter.func_test(self.current_node, real_args, kwargs) def get_option(self, name: str, subproject: str = '', - machine: MachineChoice = MachineChoice.HOST) -> T.Union[T.List[str], str, int, bool]: + machine: MachineChoice = MachineChoice.HOST) -> ElementaryOptionValues: return self.environment.coredata.get_option(OptionKey(name, subproject, machine)) def is_user_defined_option(self, name: str, subproject: str = '', |
