diff --git a/utils/templates/query.py.tpl b/utils/templates/query.py.tpl index 23b23809..ca95f5a0 100644 --- a/utils/templates/query.py.tpl +++ b/utils/templates/query.py.tpl @@ -365,7 +365,7 @@ EMPTY_QUERY = MatchAll() {% elif k.name == "Terms" %} def _setattr(self, name: str, value: Any) -> None: # here we convert any iterables that are not strings to lists - if hasattr(value, "__iter__") and not isinstance(value, (str, list)): + if hasattr(value, "__iter__") and not isinstance(value, (str, list, dict)): value = list(value) super()._setattr(name, value)