pyccel.ast.class_defs module#
This module contains all types which define a python class which is automatically recognised by pyccel
- pyccel.ast.class_defs.get_cls_base(class_type)[source]#
Determine the base class of an object.
From the type, determine the base class of an object.
- Parameters:
class_type (DataType) – The Python type of the object.
- Returns:
A class definition describing the base class of an object.
- Return type:
- Raises:
NotImplementedError – Raised if the base class cannot be found.