Skip to content

Commit bb022a9

Browse files
authored
Merge pull request #151
Support `set` type in query builder operator handling
2 parents 3c15f02 + d625766 commit bb022a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mpt_api_client/rql/query_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def rql_encode(op: str, value: Any) -> str:
106106
"""
107107
if op not in constants.LIST and isinstance(value, QueryValue):
108108
return query_value_str(value)
109-
if op in constants.LIST and isinstance(value, list | tuple):
109+
if op in constants.LIST and isinstance(value, list | tuple | set):
110110
return ",".join(value)
111111

112112
raise TypeError(f"the `{op}` operator doesn't support the {type(value)} type.")

0 commit comments

Comments
 (0)