void () { myFixture.configureByFile("typeParser/typeParser.py"); final PyType type = PyTypeParser.getTypeByName(myFixture.getFile(), "() -> int"); assertInstanceOf(type, PyCallableType.class); final PyCallableType callableType = (PyCallableType)type; assertNotNull(callableType); final PyType returnType = callableType.getReturnType(getTypeEvalContext()); assertNotNull(returnType); assertEquals("int", returnType.getName()); final List<PyCallableParameter> parameterTypes = callableType.getParameters(getTypeEvalContext()); assertNotNull(parameterTypes); assertEquals(0, parameterTypes.size()); }