https://bugs.kde.org/show_bug.cgi?id=369369
Bug ID: 369369 Summary: Methods get wrong arguments marked as optional in tooltip Product: kdev-python Version: 5.0.1 Platform: Other OS: Linux Status: UNCONFIRMED Severity: minor Priority: NOR Component: Code completion Assignee: m...@svenbrauch.de Reporter: nicolas.alva...@gmail.com If a function has optional arguments (arguments with default values), the tooltip that appears when typing the arguments in a call shows square brackets around the optional arguments: def func1(arg1, arg2, arg3=None, arg4=42, arg5='default'): pass func1( # argument tooltip says void func1 (arg1, arg2, [arg3, arg4, arg5]) However, an instance method with optional arguments shows the square brackets in the wrong set of arguments: class C: def func1(self, arg1, arg2, arg3=None, arg4=42, arg5='default'): pass c = C() c.func1( # argument tooltip says void func1 (arg1, arg2, arg3, [arg4, arg5]) It appears as if arg3 was not optional, but it is. This is probably because it's not compensating for the presence of the implicit 'self' parameter. -- You are receiving this mail because: You are watching all bug changes.