From 707ad3c2b9932ac90f5de56aef13da746f45fa16 Mon Sep 17 00:00:00 2001 From: Robert Cerven Date: Wed, 10 Nov 2021 16:17:05 +0100 Subject: [PATCH] Silent pylint * CLOUDBLD-7764 Signed-off-by: Robert Cerven --- osbs/build/plugins_configuration.py | 3 ++- osbs/cli/render.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/osbs/build/plugins_configuration.py b/osbs/build/plugins_configuration.py index e732de713..8060f50db 100644 --- a/osbs/build/plugins_configuration.py +++ b/osbs/build/plugins_configuration.py @@ -157,7 +157,8 @@ def __init__(self, user_params): customize_conf_path, ) - @abc.abstractproperty + @property + @abc.abstractmethod def pt_path(self): """Property returns path to plugins template JSON file diff --git a/osbs/cli/render.py b/osbs/cli/render.py index cbf2fb7d1..c23b5068f 100644 --- a/osbs/cli/render.py +++ b/osbs/cli/render.py @@ -153,8 +153,8 @@ def _count_sizes(self): self.header_format_str = "+".join(header_sepa_format_list) self.header_data = {} - for k in self.col_widths: - self.header_data[k] = "-" * self.col_widths[k] + for col, wid in self.col_widths.items(): + self.header_data[col] = "-" * wid def get_all_longest_col_lengths(self): """