diff options
author | Tristan Partin <tristan@partin.io> | 2023-07-12 18:11:09 -0500 |
---|---|---|
committer | Tristan Partin <tristan@partin.io> | 2023-07-12 18:56:06 -0500 |
commit | b0f1f374e72db18ddfe94b1a56b64cec7e1c98c6 (patch) | |
tree | baadeaa04bc8015dc30e505944979e6e4a04c5e7 /mesonbuild/coredata.py | |
parent | d732e27e461b0fd7939dfb34e41d9008dd8c1d82 (diff) | |
download | meson-b0f1f374e72db18ddfe94b1a56b64cec7e1c98c6.zip meson-b0f1f374e72db18ddfe94b1a56b64cec7e1c98c6.tar.gz meson-b0f1f374e72db18ddfe94b1a56b64cec7e1c98c6.tar.bz2 |
Add type annotations where they previously didn't exist
Diffstat (limited to 'mesonbuild/coredata.py')
-rw-r--r-- | mesonbuild/coredata.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index 6fff663..83a5213 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -139,7 +139,7 @@ class UserStringOption(UserOption[str]): return value class UserBooleanOption(UserOption[bool]): - def __init__(self, description: str, value, yielding: bool = DEFAULT_YIELDING, + def __init__(self, description: str, value: bool, yielding: bool = DEFAULT_YIELDING, deprecated: T.Union[bool, str, T.Dict[str, str], T.List[str]] = False): super().__init__(description, [True, False], yielding, deprecated) self.set_value(value) @@ -571,7 +571,7 @@ class CoreData: if self.cross_files: BUILTIN_OPTIONS[OptionKey('libdir')].default = 'lib' - def sanitize_prefix(self, prefix): + def sanitize_prefix(self, prefix: str) -> str: prefix = os.path.expanduser(prefix) if not os.path.isabs(prefix): raise MesonException(f'prefix value {prefix!r} must be an absolute path') |