isMethodInherited

emlib.doctools.isMethodInherited(cls, method)[source]

Is this method inherited?

Parameters:
  • cls – the class to which this method belonds

  • method (str) – the method name

Return type:

bool

Returns:

True is this method is not defined in cls but inherited from a base class. If False, this method is defined in cls and it either does not exist in any base class or it overrides a parent’s definition