Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix live tests #20886

Merged
merged 2 commits into from
Sep 27, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,15 @@ def _from_generated(cls, generated):
)


class LogsTableRow(list):
class LogsTableRow(object):
"""Represents a single row in logs table.
This type is gettable by both column name and column index.

:ivar int index: The index of the row in the table
"""

def __init__(self, **kwargs):
def __init__(self, **kwargs): # pylint: disable
rakshith91 marked this conversation as resolved.
Show resolved Hide resolved
# type: (Any) -> None
super(LogsTableRow, self).__init__(**kwargs)
_col_types = kwargs["col_types"]
row = kwargs["row"]
self._row = process_row(_col_types, row)
Expand Down Expand Up @@ -145,8 +144,7 @@ def _from_generated(cls, generated):
class MetricsList(list):
"""Custom list for metrics
"""
def __init__(self, **kwargs):
super(MetricsList, self).__init__(**kwargs)
def __init__(self, **kwargs): # pylint: disable=super-init-not-called
self._metrics = kwargs['metrics']
self._metric_names = {val.name: ind for ind, val in enumerate(self._metrics)}

Expand Down