Skip to content

PythonRuntimeChecker_InvokeMethodAndWrapResult

QuantConnect.Python.PythonRuntimeChecker_InvokeMethodAndWrapResult

Bases: Generic[QuantConnect_Python_BasePythonWrapper_InvokeMethodAndWrapResult_PythonRuntimeChecker_TResult]

__call__

__call__(
    method: Any,
    python_method_name: str,
    wrap_result: Callable[
        [Any],
        QuantConnect_Python_BasePythonWrapper_InvokeMethodAndWrapResult_PythonRuntimeChecker_TResult,
    ],
    *args: Union[Object, Iterable[Object]]
) -> QuantConnect_Python_BasePythonWrapper_InvokeMethodAndWrapResult_PythonRuntimeChecker_TResult

Invokes method method and tries to convert the returned value to type t_result. If conversion is not possible, the returned PyObject is passed to the provided wrap_result method, which should try to do the proper conversion, wrapping or handling of the PyObject.