From 263b588a6d8926812d13aa100ab635e0af903898 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Wed, 30 Nov 2022 13:46:17 -0500 Subject: [PATCH] TabRegistry: Switch __new__() use to *args, **kwargs. This fixes a pylint issue. Signed-off-by: Chris PeBenito --- setoolsgui/apol/analysistab.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setoolsgui/apol/analysistab.py b/setoolsgui/apol/analysistab.py index a85529b..1ed8034 100644 --- a/setoolsgui/apol/analysistab.py +++ b/setoolsgui/apol/analysistab.py @@ -35,9 +35,11 @@ class TabRegistry(sip.wrappertype): saving tab/workspace info. """ - def __new__(cls, clsname, superclasses, attributedict): - classdef = super().__new__(cls, clsname, superclasses, attributedict) + def __new__(cls, *args, **kwargs): + classdef = super().__new__(cls, *args, **kwargs) + clsname = args[0] + attributedict = args[2] if clsname != "AnalysisTab": assert "section" in attributedict, "Class {} is missing the section value, " \ "this is an setools bug".format(clsname)