From 67607d4073a98dace8e6fd3df89fb51546171267 Mon Sep 17 00:00:00 2001 From: Nikolai Kondrashov Date: Mon, 23 Sep 2024 12:31:21 +0300 Subject: [PATCH] pylint: Suppress new warning for old problem --- kcidb/__init__.py | 1 + kcidb/db/__init__.py | 1 + kcidb/db/abstract.py | 1 + kcidb/db/bigquery/v04_00.py | 1 + kcidb/db/mux.py | 1 + kcidb/db/null.py | 1 + kcidb/db/postgresql/v04_00.py | 1 + kcidb/db/schematic.py | 2 ++ kcidb/db/sqlite/v04_00.py | 1 + kcidb/monitor/output.py | 1 + kcidb/orm/query.py | 1 + 11 files changed, 12 insertions(+) diff --git a/kcidb/__init__.py b/kcidb/__init__.py index b8f011e1..d5d9d8cd 100644 --- a/kcidb/__init__.py +++ b/kcidb/__init__.py @@ -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): diff --git a/kcidb/db/__init__.py b/kcidb/db/__init__.py index d7620ba1..fb5735cb 100644 --- a/kcidb/db/__init__.py +++ b/kcidb/db/__init__.py @@ -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): diff --git a/kcidb/db/abstract.py b/kcidb/db/abstract.py index 2e8fa0b5..01ba79ac 100644 --- a/kcidb/db/abstract.py +++ b/kcidb/db/abstract.py @@ -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): diff --git a/kcidb/db/bigquery/v04_00.py b/kcidb/db/bigquery/v04_00.py index c74572e8..352b96fa 100644 --- a/kcidb/db/bigquery/v04_00.py +++ b/kcidb/db/bigquery/v04_00.py @@ -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): """ diff --git a/kcidb/db/mux.py b/kcidb/db/mux.py index 3c8c4bff..fab5a33c 100644 --- a/kcidb/db/mux.py +++ b/kcidb/db/mux.py @@ -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): """ diff --git a/kcidb/db/null.py b/kcidb/db/null.py index 23c4a680..9b733675 100644 --- a/kcidb/db/null.py +++ b/kcidb/db/null.py @@ -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): """ diff --git a/kcidb/db/postgresql/v04_00.py b/kcidb/db/postgresql/v04_00.py index 6b7b6167..6198707b 100644 --- a/kcidb/db/postgresql/v04_00.py +++ b/kcidb/db/postgresql/v04_00.py @@ -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): """ diff --git a/kcidb/db/schematic.py b/kcidb/db/schematic.py index c91807a8..ec77169a 100644 --- a/kcidb/db/schematic.py +++ b/kcidb/db/schematic.py @@ -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): @@ -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): """ diff --git a/kcidb/db/sqlite/v04_00.py b/kcidb/db/sqlite/v04_00.py index 1e1b2208..d074aca6 100644 --- a/kcidb/db/sqlite/v04_00.py +++ b/kcidb/db/sqlite/v04_00.py @@ -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): """ diff --git a/kcidb/monitor/output.py b/kcidb/monitor/output.py index 855aeb20..31c9046f 100644 --- a/kcidb/monitor/output.py +++ b/kcidb/monitor/output.py @@ -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. diff --git a/kcidb/orm/query.py b/kcidb/orm/query.py index a37951d9..60af38f6 100644 --- a/kcidb/orm/query.py +++ b/kcidb/orm/query.py @@ -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):