Skip to content

Commit d7f2107

Browse files
committed
Resolve errors in graph client factory
1 parent 0532579 commit d7f2107

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/msgraph_core/graph_client_factory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class GraphClientFactory(KiotaClientFactory):
2222
"""
2323

2424
@staticmethod
25-
def create_with_default_middleware(
25+
def create_with_default_middleware( # type: ignore # Breaking change to remove KiotaClientFactory as base class
2626
api_version: APIVersion = APIVersion.v1,
2727
client: Optional[httpx.AsyncClient] = None,
2828
host: NationalClouds = NationalClouds.Global,
@@ -53,7 +53,7 @@ def create_with_default_middleware(
5353
return GraphClientFactory._load_middleware_to_client(client, middleware)
5454

5555
@staticmethod
56-
def create_with_custom_middleware(
56+
def create_with_custom_middleware( # type: ignore # Breaking change to remove Kiota client factory as base class
5757
middleware: Optional[List[BaseMiddleware]],
5858
api_version: APIVersion = APIVersion.v1,
5959
client: Optional[httpx.AsyncClient] = None,
@@ -91,7 +91,7 @@ def _get_telemetry_handler(
9191
options"""
9292

9393
if options:
94-
graph_telemetry_options = options.get(GraphTelemetryHandlerOption().get_key())
94+
graph_telemetry_options: GraphTelemetryHandlerOption = options.get(GraphTelemetryHandlerOption().get_key()) # type: ignore # Unable to down cast type
9595
if graph_telemetry_options:
9696
return GraphTelemetryHandler(options=graph_telemetry_options)
9797
return GraphTelemetryHandler()

0 commit comments

Comments
 (0)