Skip to content

Commit

Permalink
ast: Do not resolve dict keys
Browse files Browse the repository at this point in the history
  • Loading branch information
xclaesse committed Mar 6, 2020
1 parent 7476961 commit b78db74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/ast/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def reduce_arguments(self, args: ArgumentNode, resolve_key_nodes: bool = True) -
if isinstance(args, ArgumentNode):
kwargs = {} # type: T.Dict[T.Union[str, BaseNode], TYPE_nvar]
for key, val in args.kwargs.items():
if isinstance(key, (StringNode, IdNode)):
if resolve_key_nodes and isinstance(key, (StringNode, IdNode)):
assert isinstance(key.value, str)
kwargs[key.value] = val
else:
Expand Down

0 comments on commit b78db74

Please sign in to comment.