Skip to content
Discussion options

You must be logged in to vote

You've used an unsupported type, and you're getting unexpected results. If you use an IDE tool or mypy for Python typing, it should probably warn you that the type you are using is incorrect.

type you have used for params is: typing.Dict[str, set[int]]

Supported types:

QueryParamTypes = Union[
    "QueryParams",
    Mapping[str, Union[PrimitiveData, Sequence[PrimitiveData]]],
    List[Tuple[str, PrimitiveData]],
    Tuple[Tuple[str, PrimitiveData], ...],
    str,
    bytes,
] 

Valid examples:

[("test", "test"), ] #  valid for List[Tuple[str, PrimitiveData]]
{"test": "test} # valid for Mapping[str, Union[PrimitiveData, Sequence[PrimitiveData]]]

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@finswimmer
Comment options

@karpetrosyan
Comment options

Answer selected by lovelydinosaur
@lovelydinosaur
Comment options

@karpetrosyan
Comment options

@finswimmer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants