We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eff5fc7 commit 1ba984eCopy full SHA for 1ba984e
msgraph_beta/graph_request_adapter.py
@@ -1,4 +1,4 @@
1
-from typing import Dict, Optional
+from typing import Optional
2
import httpx
3
from kiota_abstractions.authentication import AuthenticationProvider
4
from kiota_http.middleware.options import UrlReplaceHandlerOption
@@ -19,6 +19,7 @@
19
20
class GraphRequestAdapter(BaseGraphRequestAdapter):
21
def __init__(self, auth_provider: AuthenticationProvider,
22
- client: Optional[httpx.AsyncClient] = GraphClientFactory.create_with_default_middleware(options=options)
23
- ) -> None:
+ client: Optional[httpx.AsyncClient] = None) -> None:
+ if client is None:
24
+ client = GraphClientFactory.create_with_default_middleware(options=options)
25
super().__init__(auth_provider, http_client=client)
0 commit comments