void () { runWithLanguageLevel(LanguageLevel.PYTHON34, () -> { myFixture.configureByText(PythonFileType.INSTANCE, "def func(a, b:int, *args: tuple, c:list, d:str='foo', ** kwargs:dict):\n" + " pass"); final PyFunction function = (PyFunction)new PyChangeSignatureHandler().findTargetMember(myFixture.getFile(), myFixture.getEditor()); assertNotNull(function); final List<String> expected = Arrays.asList("a", "b", "*args", "c", "d", "**kwargs"); final List<PyParameterInfo> parameters = new PyMethodDescriptor(function).getParameters(); assertEquals(expected, ContainerUtil.map(parameters, info -> info.getOldName())); }); }