Defining function with tuple as first argument crashes code editor

Expected behavior

def func((a,b)):

When run from code editor should exit cleanly

Actual behavior

Script appears to run but then crashes code editor tab with error:

Traceback (most recent call last):
  File "C:\MantidInstall\bin\mantidqt\widgets\codeeditor\", line 332, in _on_exec_success
  File "C:\MantidInstall\bin\mantidqt\widgets\codeeditor\", line 184, in generate_calltips
    calltips.append(name + get_function_spec(attr))
  File "C:\MantidInstall\bin\mantidqt\widgets\codeeditor\", line 80, in get_function_spec
    calltip = ','.join(args)
TypeError: sequence item 0: expected string, list found

Steps to reproduce the behavior


def func((a,b)):

into code editor and run

Platforms affected

I’m running in workbench 4.1.0 on Windows 10

Added as test case to Expand code completion in workbench · Issue #23628 · mantidproject/mantid · GitHub