legate.core.Type.from_python_object#
- static Type.from_python_object(py_object: Any) Type#
Construct a
Typeobject by deducing the type of a python object.- Parameters:
py_object (Any) – The python object to type-deduce.
- Returns:
The deduced type.
- Return type:
- Raises:
NotImplementedError – If the type deduction fails.