Skip to content

Commit 4a4bd8a

Browse files
authored
Merge pull request #460 from microsoftgraph/bugfix/mutable-defaults
fix: do not use default mutable parameters
2 parents 7f5cab6 + 1820732 commit 4a4bd8a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

msgraph_beta/graph_request_adapter.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Dict, Optional
1+
from typing import Optional
22
import httpx
33
from kiota_abstractions.authentication import AuthenticationProvider
44
from kiota_http.middleware.options import UrlReplaceHandlerOption
@@ -19,6 +19,7 @@
1919

2020
class GraphRequestAdapter(BaseGraphRequestAdapter):
2121
def __init__(self, auth_provider: AuthenticationProvider,
22-
client: Optional[httpx.AsyncClient] = GraphClientFactory.create_with_default_middleware(options=options)
23-
) -> None:
22+
client: Optional[httpx.AsyncClient] = None) -> None:
23+
if client is None:
24+
client = GraphClientFactory.create_with_default_middleware(options=options)
2425
super().__init__(auth_provider, http_client=client)

0 commit comments

Comments
 (0)