Skip to content

Commit

Permalink
interpreter: put back assertion message that was dropped in error
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbaker authored and eli-schwartz committed Nov 20, 2024
1 parent 58d1efb commit 3ba0976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ def func_import(self, node: mparser.BaseNode, args: T.Tuple[str],
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)
Expand Down

0 comments on commit 3ba0976

Please sign in to comment.