fix: change QueryParams constructor from __init__ to __new__ for proper instantiation

This commit is contained in:
Bakyt Niiazaliev 2025-06-13 20:36:40 +07:00
parent 60e37b1e1f
commit 0e2361dbf3

View File

@ -13,7 +13,7 @@ QueryParamTypes = typing.Union[
@typing.final
class QueryParams(typing.Mapping[str, str]):
def __init__(self, *args: QueryParamTypes | None, **kwargs: typing.Any) -> None:...
def __new__(cls, *args: QueryParamTypes | None, **kwargs: typing.Any) -> None:...
def keys(self) -> typing.KeysView[str]:
"""
Return all the keys in the query params.