aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-12-05 23:41:47 -0500
committerXavier Claessens <xclaesse@gmail.com>2019-12-07 07:24:31 -0500
commit9cb600cbb83becab927e9469fdcd2ff4d5b31983 (patch)
tree42b29569db3ef219a7411b632416609bbf38f6a7
parent366ff06b0e6ec624d4c2c843bb92558571d8a0b7 (diff)
downloadmeson-9cb600cbb83becab927e9469fdcd2ff4d5b31983.zip
meson-9cb600cbb83becab927e9469fdcd2ff4d5b31983.tar.gz
meson-9cb600cbb83becab927e9469fdcd2ff4d5b31983.tar.bz2
type anno
-rw-r--r--mesonbuild/coredata.py4
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. ' \