aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/boost.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2020-09-01 14:28:08 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2020-09-08 20:15:58 +0200
commit23818fc5a389c49e2673f79af2c90d9d56b1aaf0 (patch)
tree75d73e4d81c9b1ca3187668808a80a8673ead0e6 /mesonbuild/dependencies/boost.py
parent1b19822a2df7ff969e3734973f131df9ed9d2ee3 (diff)
downloadmeson-23818fc5a389c49e2673f79af2c90d9d56b1aaf0.zip
meson-23818fc5a389c49e2673f79af2c90d9d56b1aaf0.tar.gz
meson-23818fc5a389c49e2673f79af2c90d9d56b1aaf0.tar.bz2
typing: more fixes
Diffstat (limited to 'mesonbuild/dependencies/boost.py')
-rw-r--r--mesonbuild/dependencies/boost.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py
index 8497d2c..6e95860 100644
--- a/mesonbuild/dependencies/boost.py
+++ b/mesonbuild/dependencies/boost.py
@@ -341,7 +341,9 @@ class BoostLibraryFile():
class BoostDependency(ExternalDependency):
def __init__(self, environment: Environment, kwargs: T.Dict[str, T.Any]) -> None:
super().__init__('boost', environment, kwargs, language='cpp')
- self.debug = environment.coredata.get_builtin_option('buildtype').startswith('debug')
+ buildtype = environment.coredata.get_builtin_option('buildtype')
+ assert isinstance(buildtype, str)
+ self.debug = buildtype.startswith('debug')
self.multithreading = kwargs.get('threading', 'multi') == 'multi'
self.boost_root = None # type: Path