@@ -334,7 +334,7 @@ def _execute_request(
334334 as_json : typing .Literal [True ],
335335 last_exception : typing .Union [None , Exception ] = None ,
336336 num_retries : int = 0 ,
337- ** kwargs : typing . Unpack [ SessionFunctionKwargs [TParams , TBody ] ],
337+ ** kwargs : SessionFunctionKwargs [TParams , TBody ],
338338 ) -> TEntityDict :
339339 """
340340 Execute a request to the Typesense API with retry logic.
@@ -373,7 +373,7 @@ def _execute_request(
373373 as_json : typing .Literal [False ],
374374 last_exception : typing .Union [None , Exception ] = None ,
375375 num_retries : int = 0 ,
376- ** kwargs : typing . Unpack [ SessionFunctionKwargs [TParams , TBody ] ],
376+ ** kwargs : SessionFunctionKwargs [TParams , TBody ],
377377 ) -> str :
378378 """
379379 Execute a request to the Typesense API with retry logic.
@@ -411,7 +411,7 @@ def _execute_request(
411411 as_json : typing .Union [typing .Literal [True ], typing .Literal [False ]] = True ,
412412 last_exception : typing .Union [None , Exception ] = None ,
413413 num_retries : int = 0 ,
414- ** kwargs : typing . Unpack [ SessionFunctionKwargs [TParams , TBody ] ],
414+ ** kwargs : SessionFunctionKwargs [TParams , TBody ],
415415 ) -> typing .Union [TEntityDict , str ]:
416416 """
417417 Execute a request to the Typesense API with retry logic.
@@ -473,7 +473,7 @@ def _make_request_and_process_response(
473473 url : str ,
474474 entity_type : typing .Type [TEntityDict ],
475475 as_json : bool ,
476- ** kwargs : typing . Any ,
476+ ** kwargs : SessionFunctionKwargs [ TParams , TBody ] ,
477477 ) -> typing .Union [TEntityDict , str ]:
478478 """Make the API request and process the response."""
479479 request_response = self .request_handler .make_request (
@@ -493,7 +493,7 @@ def _make_request_and_process_response(
493493 def _prepare_request_params (
494494 self ,
495495 endpoint : str ,
496- ** kwargs : typing . Unpack [ SessionFunctionKwargs [TParams , TBody ] ],
496+ ** kwargs : SessionFunctionKwargs [TParams , TBody ],
497497 ) -> typing .Tuple [Node , str , SessionFunctionKwargs [TParams , TBody ]]:
498498 node = self .node_manager .get_node ()
499499 url = node .url () + endpoint
0 commit comments