protoclass.utils.check_modality_inherit¶
-
protoclass.utils.
check_modality_inherit
(child_modality, parent_modality)[source]¶ Check if a modality inherit from another one.
Parameters: child_modality : object
The child object.
parent_modality_info : classinfo
The class info of the parent modality.
Returns: child_modality : object
If no error raise, return the child_object.