PythonRuntimeChecker_ConvertAndDispose
QuantConnect.Python.PythonRuntimeChecker_ConvertAndDispose
Bases: Generic[QuantConnect_Python_BasePythonWrapper_ConvertAndDispose_PythonRuntimeChecker_T]
__call__
__call__(
py_object: Any, python_name: str, is_method: bool = True
) -> QuantConnect_Python_BasePythonWrapper_ConvertAndDispose_PythonRuntimeChecker_T
Converts the given PyObject into the provided t type, generating an exception with a user-friendly message if conversion is not possible. It will dispose of the source PyObject.