diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-12-05 23:41:47 -0500 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2019-12-07 07:24:31 -0500 |
commit | 9cb600cbb83becab927e9469fdcd2ff4d5b31983 (patch) | |
tree | 42b29569db3ef219a7411b632416609bbf38f6a7 | |
parent | 366ff06b0e6ec624d4c2c843bb92558571d8a0b7 (diff) | |
download | meson-9cb600cbb83becab927e9469fdcd2ff4d5b31983.zip meson-9cb600cbb83becab927e9469fdcd2ff4d5b31983.tar.gz meson-9cb600cbb83becab927e9469fdcd2ff4d5b31983.tar.bz2 |
type anno
-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 60eb388..20fe750 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -170,7 +170,7 @@ class UserArrayOption(UserOption[List[str]]): self.allow_dups = allow_dups self.value = self.validate_value(value, user_input=user_input) - def validate_value(self, value, user_input=True) -> List[str]: + def validate_value(self, value, user_input: bool = True) -> List[str]: # User input is for options defined on the command line (via -D # options). Users can put their input in as a comma separated # string, but for defining options in meson_options.txt the format @@ -191,7 +191,7 @@ class UserArrayOption(UserOption[List[str]]): elif isinstance(value, list): newvalue = value else: - raise MesonException('"{0}" should be a string array, but it is not'.format(str(newvalue))) + raise MesonException('"{}" should be a string array, but it is not'.format(newvalue)) if not self.allow_dups and len(set(newvalue)) != len(newvalue): msg = 'Duplicated values in array option is deprecated. ' \ |