Skip to content

PythonRuntimeChecker_Convert

QuantConnect.Python.PythonRuntimeChecker_Convert

Bases: Generic[QuantConnect_Python_BasePythonWrapper_Convert_PythonRuntimeChecker_T]

__call__

__call__(
    py_object: Any, python_name: str, is_method: bool = True
) -> QuantConnect_Python_BasePythonWrapper_Convert_PythonRuntimeChecker_T

Converts the given PyObject into the provided t type, generating an exception with a user-friendly message if conversion is not possible.