Skip to content

Commit 99ab168

Browse files
author
Rakshith Bhyravabhotla
authored
Fix live tests (#20886)
* Fix tests * Update sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py
1 parent 5697a75 commit 99ab168

File tree

1 file changed

+2
-4
lines changed
  • sdk/monitor/azure-monitor-query/azure/monitor/query

1 file changed

+2
-4
lines changed

sdk/monitor/azure-monitor-query/azure/monitor/query/_models.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _from_generated(cls, generated):
5757
)
5858

5959

60-
class LogsTableRow(list):
60+
class LogsTableRow(object):
6161
"""Represents a single row in logs table.
6262
This type is gettable by both column name and column index.
6363
@@ -66,7 +66,6 @@ class LogsTableRow(list):
6666

6767
def __init__(self, **kwargs):
6868
# type: (Any) -> None
69-
super(LogsTableRow, self).__init__(**kwargs)
7069
_col_types = kwargs["col_types"]
7170
row = kwargs["row"]
7271
self._row = process_row(_col_types, row)
@@ -145,8 +144,7 @@ def _from_generated(cls, generated):
145144
class MetricsList(list):
146145
"""Custom list for metrics
147146
"""
148-
def __init__(self, **kwargs):
149-
super(MetricsList, self).__init__(**kwargs)
147+
def __init__(self, **kwargs): # pylint: disable=super-init-not-called
150148
self._metrics = kwargs['metrics']
151149
self._metric_names = {val.name: ind for ind, val in enumerate(self._metrics)}
152150

0 commit comments

Comments
 (0)