Skip to content

Commit 58d75b8

Browse files
fix mypy errors (Azure#23343)
1 parent 276115d commit 58d75b8

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/_metrics_advisor_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ def _list_anomalies_for_detection_configuration(
424424
@overload
425425
def list_anomalies(
426426
self,
427+
*,
427428
alert_configuration_id, # type: str
428429
alert_id, # type: str
429430
**kwargs # type: Any
@@ -453,6 +454,7 @@ def list_anomalies(
453454
@overload
454455
def list_anomalies(
455456
self,
457+
*,
456458
detection_configuration_id, # type: str
457459
start_time, # type: Union[str, datetime.datetime]
458460
end_time, # type: Union[str, datetime.datetime]
@@ -594,6 +596,7 @@ def _list_incidents_for_detection_configuration(
594596
@overload
595597
def list_incidents(
596598
self,
599+
*,
597600
alert_configuration_id, # type: str
598601
alert_id, # type: str
599602
**kwargs # type: Any
@@ -623,6 +626,7 @@ def list_incidents(
623626
@overload
624627
def list_incidents(
625628
self,
629+
*,
626630
detection_configuration_id, # type: str
627631
start_time, # type: Union[str, datetime.datetime]
628632
end_time, # type: Union[str, datetime.datetime]

sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/aio/_metrics_advisor_client_async.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def _list_anomalies_for_detection_configuration(
423423

424424
@overload
425425
def list_anomalies(
426-
self, alert_configuration_id: str, alert_id: str, **kwargs: Any
426+
self, *, alert_configuration_id: str, alert_id: str, **kwargs: Any
427427
) -> AsyncItemPaged[DataPointAnomaly]:
428428
"""Query anomalies under a specific alert.
429429
@@ -449,6 +449,7 @@ def list_anomalies(
449449
@overload
450450
def list_anomalies(
451451
self,
452+
*,
452453
detection_configuration_id: str,
453454
start_time: Union[str, datetime.datetime],
454455
end_time: Union[str, datetime.datetime],
@@ -591,7 +592,7 @@ def _list_incidents_for_detection_configuration(
591592

592593
@overload
593594
def list_incidents(
594-
self, alert_configuration_id: str, alert_id: str, **kwargs: Any
595+
self, *, alert_configuration_id: str, alert_id: str, **kwargs: Any
595596
) -> AsyncItemPaged[AnomalyIncident]:
596597

597598
"""Query incidents under a specific alert.
@@ -618,6 +619,7 @@ def list_incidents(
618619
@overload
619620
def list_incidents(
620621
self,
622+
*,
621623
detection_configuration_id: str,
622624
start_time: Union[str, datetime.datetime],
623625
end_time: Union[str, datetime.datetime],

0 commit comments

Comments
 (0)