Skip to content

Commit 26a22ec

Browse files
committed
fix(types): give defaut to as_json to be true as it's needed
1 parent c57c9c6 commit 26a22ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/typesense/async_/api_call.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ async def get(
205205
self,
206206
endpoint: str,
207207
entity_type: typing.Type[TEntityDict],
208-
as_json: typing.Literal[True],
208+
as_json: typing.Literal[True] = True,
209209
params: typing.Union[TParams, None] = None,
210210
) -> TEntityDict:
211211
"""
@@ -276,7 +276,7 @@ async def post(
276276
self,
277277
endpoint: str,
278278
entity_type: typing.Type[TEntityDict],
279-
as_json: typing.Literal[True],
279+
as_json: typing.Literal[True] = True,
280280
params: typing.Union[TParams, None] = None,
281281
body: typing.Union[TBody, None] = None,
282282
) -> TEntityDict:

0 commit comments

Comments
 (0)