Skip to content

Commit 0b3c6cc

Browse files
ignore metricsadvisor typing where it can't tell we are using cls (Azure#29012)
1 parent 29fb141 commit 0b3c6cc

File tree

1 file changed

+2
-2
lines changed
  • sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/aio/_operations

1 file changed

+2
-2
lines changed

sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/aio/_operations/_patch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async def create_alert_configuration( # type: ignore # pylint: disable=argument
104104
**kwargs: Any
105105
) -> models.AnomalyAlertConfiguration:
106106
cross_metrics_operator = kwargs.pop("cross_metrics_operator", None)
107-
response_headers = await super().create_alert_configuration(
107+
response_headers = await super().create_alert_configuration( # type: ignore[func-returns-value]
108108
models.AnomalyAlertConfiguration(
109109
name=name,
110110
metric_alert_configurations=[
@@ -180,7 +180,7 @@ async def create_detection_configuration( # type: ignore # pylint: disable=argu
180180
if attr in kwargs:
181181
kwargs.pop(attr)
182182

183-
response_headers = await super().create_detection_configuration(
183+
response_headers = await super().create_detection_configuration( # type: ignore[func-returns-value]
184184
config, cls=lambda pipeline_response, _, response_headers: response_headers, **kwargs
185185
)
186186
response_headers = cast(dict, response_headers)

0 commit comments

Comments
 (0)