interpreter: put back assertion message that was dropped in error

pull/13445/merge
Dylan Baker 2 weeks ago committed by Eli Schwartz
parent 58d1efb5b2
commit 3ba0976394
  1. 2
      mesonbuild/interpreter/interpreter.py

@ -627,7 +627,7 @@ class Interpreter(InterpreterBase, HoldableObject):
ext_module = NotFoundExtensionModule(real_modname)
else:
ext_module = module.initialize(self)
assert isinstance(ext_module, (ExtensionModule, NewExtensionModule))
assert isinstance(ext_module, (ExtensionModule, NewExtensionModule)), 'for mypy'
self.build.modules.add(real_modname)
if ext_module.INFO.added:
FeatureNew.single_use(f'module {ext_module.INFO.name}', ext_module.INFO.added, self.subproject, location=node)

Loading…
Cancel
Save