Skip to content

Commit eec1be1

Browse files
authored
Inspector: Fix empty doc error and remove duplicate methods
1 parent 490bfa4 commit eec1be1

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

plugindevtools/PluginDevTools/PluginDevToolsDocker.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,10 +1527,12 @@ def loadItemInfo(self, obj):
15271527
ptypes = meth.parameterTypes()
15281528
className = None
15291529

1530-
if meth.name() in otherMethods:
1531-
del otherMethods[k]
1530+
methName = str(meth.name(), 'utf-8')
15321531

1533-
methName = str(meth.name(), 'utf-8') + "(" + str(b','.join( [ ptypes[i]+b" "+pnames[i] for i in range(0,meth.parameterCount()) ] ), 'utf-8') + ")"
1532+
if methName in otherMethods:
1533+
del otherMethods[methName]
1534+
1535+
methName += "(" + str(b','.join( [ ptypes[i]+b" "+pnames[i] for i in range(0,meth.parameterCount()) ] ), 'utf-8') + ")"
15341536
if methName not in metaDict['methods']:
15351537
methType = self.METHOD_ACCESS[int(meth.access())] + " " + self.METHOD_TYPES[int(meth.methodType())]
15361538

@@ -1601,7 +1603,7 @@ def loadItemInfo(self, obj):
16011603
for k in sorted(otherMethods.keys()):
16021604
if not k.startswith('__'):
16031605
objDoc = getattr(obj,k).__doc__
1604-
if '(self' in objDoc:
1606+
if objDoc and '(self' in objDoc:
16051607
objSig = objDoc.split(' -> ')
16061608

16071609
item = [

0 commit comments

Comments
 (0)