Skip to content

Commit 46a671a

Browse files
authored
Python 5.10+ fix
1 parent 230d34a commit 46a671a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugindevtools/PluginDevTools/PluginDevToolsDocker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def genMethodList(self, className, obj, meta ):
431431
else:
432432
propName[0] = re.sub(
433433
r"\((.+)\)",
434-
lambda s: "(" + ', '.join( [ metaDict2['methods'][key]['pnames'][i] + ': ' + v for i, v in enumerate(s.group(1).split(', ')) ] ) + ")",
434+
lambda s: "(" + ', '.join( [ metaDict2['methods'][key]['pnames'][i] + ': ' + v for i, v in enumerate(s.group(1).split(', ')) if i < len(metaDict2['methods'][key]['pnames']) ] ) + ")",
435435
propName[0]
436436
)
437437
if 'Private' in metaDict2['methods'][key]['rec'][1]:

0 commit comments

Comments
 (0)