Skip to content

Commit 878b327

Browse files
authored
Merge pull request #219
MPT-18457 MPT API Client - Missing type for `in` RQL query
2 parents d0c4a94 + b5da65a commit 878b327

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mpt_api_client/rql/query_builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import datetime as dt
2+
from collections.abc import Iterable
23
from decimal import Decimal
34
from typing import Any, Self, override
45

@@ -46,7 +47,7 @@ def __str__(self) -> str:
4647
return str(self.value)
4748

4849

49-
def parse_kwargs(query_dict: dict[str, QueryValue]) -> list[str]: # noqa: WPS231
50+
def parse_kwargs(query_dict: dict[str, QueryValue | Iterable[QueryValue]]) -> list[str]: # noqa: WPS231
5051
"""
5152
Parse keyword arguments into RQL query expressions.
5253
@@ -186,7 +187,7 @@ class RQLQuery:
186187
def __init__( # noqa: WPS211
187188
self,
188189
namespace_: str | None = None, # noqa: WPS120
189-
**kwargs: QueryValue,
190+
**kwargs: QueryValue | Iterable[QueryValue],
190191
) -> None:
191192
self.op: str = self.OP_EXPRESSION
192193
self.children: list[RQLQuery] = []

0 commit comments

Comments
 (0)