TabRegistry: Switch __new__() use to *args, **kwargs.

This fixes a pylint issue.

Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
This commit is contained in:
Chris PeBenito 2022-11-30 13:46:17 -05:00
parent 13edaf693c
commit 263b588a6d

View File

@ -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)