Skip to content

Commit d9678f4

Browse files
committed
code clean up
1 parent bf6133c commit d9678f4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/msgraph_core/requests/batch_request_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ async def post(
7979
raise ValueError("Failed to get a valid response from the API.")
8080
return response
8181
if isinstance(batch_request_content, BatchRequestContentCollection):
82-
batch_responses = await self.post_batch_collection(batch_request_content, error_map)
82+
batch_responses = await self._post_batch_collection(batch_request_content, error_map)
8383
return batch_responses
8484

8585
raise ValueError("Invalid type for batch_request_content.")
8686

87-
async def post_batch_collection(
87+
async def _post_batch_collection(
8888
self,
8989
batch_request_content_collection: BatchRequestContentCollection,
9090
error_map: Optional[Dict[str, Type[Parsable]]] = None,

src/msgraph_core/requests/batch_request_content_collection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ class BatchRequestContentCollection:
1313
def __init__(self) -> None:
1414
"""
1515
Initializes a new instance of the BatchRequestContentCollection class.
16-
Args:
17-
number of requests in a batch. Defaults to 20.
16+
1817
1918
"""
2019
self.batches: List[BatchRequestContent] = []

0 commit comments

Comments
 (0)