fix undefined StringNode from previous commit

pull/10594/head
Charles Brunet 1 year ago committed by Nirbheek Chauhan
parent 923b95f3d1
commit ef5931f12d
  1. 2
      mesonbuild/ast/introspection.py

@ -378,6 +378,6 @@ class IntrospectionInterpreter(AstInterpreter):
assert isinstance(kw, IdNode), 'for mypy' assert isinstance(kw, IdNode), 'for mypy'
if kw.value == 'subproject_dir': if kw.value == 'subproject_dir':
# mypy does not understand "and isinstance" # mypy does not understand "and isinstance"
if isinstance(val, StringNode): if isinstance(val, BaseStringNode):
return val.value return val.value
return None return None

Loading…
Cancel
Save