legate.core.Type.from_python_object#

static Type.from_python_object(py_object: Any) Type#

Construct a Type object by deducing the type of a python object.

Parameters:

py_object (Any) – The python object to type-deduce.

Returns:

The deduced type.

Return type:

Type

Raises:

NotImplementedError – If the type deduction fails.