Skip to content

Commit 60bebdd

Browse files
committed
add response type to post method
1 parent 18a77d2 commit 60bebdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/msgraph_core/requests/batch_request_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import TypeVar, Dict, Optional, Union
1+
from typing import TypeVar, Type, Dict, Optional, Union
22
import json
33
import logging
44

@@ -34,7 +34,7 @@ def __init__(self, request_adapter: RequestAdapter, error_map: Optional[Dict[str
3434
async def post(
3535
self,
3636
batch_request_content: Union[BatchRequestContent, BatchRequestContentCollection],
37-
response_type: Optional[T] = None,
37+
response_type: Optional[Type[T]] = None,
3838
error_map: Optional[Dict[str, int]] = None,
3939
) -> Union[T, BatchResponseContentCollection]:
4040
"""
@@ -43,7 +43,7 @@ async def post(
4343
Args:
4444
batch_request_content (Union[BatchRequestContent,
4545
BatchRequestContentCollection]): The batch request content.
46-
response_type (Optional[T]): The type to deserialize the response into.
46+
response_type: Optional[Type[T]] : The type to deserialize the response into.
4747
error_map: Dict[str, int] = {}:
4848
Error mappings for response handling.
4949

0 commit comments

Comments
 (0)