Skip to content

Commit

Permalink
pylint: Suppress new warning for old problem
Browse files Browse the repository at this point in the history
  • Loading branch information
spbnick committed Sep 23, 2024
1 parent 7e9d284 commit ab7b7e9
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions kcidb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def submit_iter(self, data_iter, done_cb=None):
return self.mq_publisher.publish_iter(data_iter, done_cb=done_cb)

# We can live with this for now, pylint: disable=too-many-arguments
# Or if you prefer, pylint: disable=too-many-positional-arguments
def query_iter(self, ids=None,
children=False, parents=False,
objects_per_report=0, with_metadata=False):
Expand Down
1 change: 1 addition & 0 deletions kcidb/db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ def dump(self, with_metadata=True):
return self.get_schema()[1].new()

# We can live with this for now, pylint: disable=too-many-arguments
# Or if you prefer, pylint: disable=too-many-positional-arguments
def query_iter(self, ids=None,
children=False, parents=False,
objects_per_report=0, with_metadata=False):
Expand Down
1 change: 1 addition & 0 deletions kcidb/db/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ def dump_iter(self, objects_per_report, with_metadata):
assert self.is_initialized()

# We can live with this for now, pylint: disable=too-many-arguments
# Or if you prefer, pylint: disable=too-many-positional-arguments
@abstractmethod
def query_iter(self, ids, children, parents, objects_per_report,
with_metadata):
Expand Down
1 change: 1 addition & 0 deletions kcidb/db/bigquery/v04_00.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ def dump_iter(self, objects_per_report, with_metadata):
yield data

# We can live with this for now, pylint: disable=too-many-arguments
# Or if you prefer, pylint: disable=too-many-positional-arguments
def query_iter(self, ids, children, parents, objects_per_report,
with_metadata):
"""
Expand Down
1 change: 1 addition & 0 deletions kcidb/db/mux.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ def dump_iter(self, objects_per_report, with_metadata):
with_metadata)

# We can live with this for now, pylint: disable=too-many-arguments
# Or if you prefer, pylint: disable=too-many-positional-arguments
def query_iter(self, ids, children, parents, objects_per_report,
with_metadata):
"""
Expand Down
1 change: 1 addition & 0 deletions kcidb/db/null.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def dump_iter(self, objects_per_report, with_metadata):
yield io.SCHEMA.new()

# We can live with this for now, pylint: disable=too-many-arguments
# Or if you prefer, pylint: disable=too-many-positional-arguments
def query_iter(self, ids, children, parents, objects_per_report,
with_metadata):
"""
Expand Down
1 change: 1 addition & 0 deletions kcidb/db/postgresql/v04_00.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@ def dump_iter(self, objects_per_report, with_metadata):
yield data

# We can live with this for now, pylint: disable=too-many-arguments
# Or if you prefer, pylint: disable=too-many-positional-arguments
def query_iter(self, ids, children, parents, objects_per_report,
with_metadata):
"""
Expand Down
2 changes: 2 additions & 0 deletions kcidb/db/schematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ def dump_iter(self, objects_per_report, with_metadata):
assert isinstance(with_metadata, bool)

# We can live with this for now, pylint: disable=too-many-arguments
# Or if you prefer, pylint: disable=too-many-positional-arguments
@abstractmethod
def query_iter(self, ids, children, parents, objects_per_report,
with_metadata):
Expand Down Expand Up @@ -628,6 +629,7 @@ def dump_iter(self, objects_per_report, with_metadata):
return self.schema.dump_iter(objects_per_report, with_metadata)

# We can live with this for now, pylint: disable=too-many-arguments
# Or if you prefer, pylint: disable=too-many-positional-arguments
def query_iter(self, ids, children, parents, objects_per_report,
with_metadata):
"""
Expand Down
1 change: 1 addition & 0 deletions kcidb/db/sqlite/v04_00.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ def dump_iter(self, objects_per_report, with_metadata):
yield data

# We can live with this for now, pylint: disable=too-many-arguments
# Or if you prefer, pylint: disable=too-many-positional-arguments
def query_iter(self, ids, children, parents, objects_per_report,
with_metadata):
"""
Expand Down
1 change: 1 addition & 0 deletions kcidb/monitor/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class NotificationMessage:
Message for a notification about a report object state.
"""
# It's OK pylint: disable=too-many-arguments
# Or if you'd prefer, pylint: disable=too-many-positional-arguments
def __init__(self, to, subject, body, cc=None, bcc=None, id="", due=None):
"""
Initialize a notification message.
Expand Down
1 change: 1 addition & 0 deletions kcidb/orm/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ def _expand_relation(schema, base_set,
)
return new_set, unused_set

# It's OK for now, pylint: disable=too-many-positional-arguments
@staticmethod
def _expand(schema, base_set, match_set, child, obj_type_expr,
obj_id_set, match_spec):
Expand Down

0 comments on commit ab7b7e9

Please sign in to comment.