Define DataModel constructor to avoid conflicting D204 and D211

This commit is contained in:
Christophe Bedard 2019-07-31 14:06:40 +02:00
parent 267e02480f
commit 54c581f54d
4 changed files with 7 additions and 1 deletions

View file

@ -22,4 +22,6 @@ class DataModel():
Contains data for an analysis to use. This is a middleground between trace events data and the
output data of an analysis. It uses pandas `DataFrame` directly.
"""
pass
def __init__(self) -> None:
pass

View file

@ -28,6 +28,7 @@ class CpuTimeDataModel(DataModel):
def __init__(self) -> None:
"""Constructor."""
super().__init__()
self.times = pd.DataFrame(columns=[
'tid',
'start_timestamp',

View file

@ -24,6 +24,7 @@ class ProfileDataModel(DataModel):
def __init__(self) -> None:
"""Constructor."""
super().__init__()
self.times = pd.DataFrame(columns=[
'tid',
'depth',

View file

@ -27,6 +27,8 @@ class RosDataModel(DataModel):
"""
def __init__(self) -> None:
"""Constructor."""
super().__init__()
# Objects (one-time events, usually when something is created)
self.contexts = pd.DataFrame(columns=['context_handle',
'timestamp',