def _determine_doubled_obj_type(self):
        """Returns the type (class) of the target object.

        :return: The type (class) of the target.
        :rtype: type, classobj
        """

        if isclass(self.doubled_obj) or ismodule(self.doubled_obj):
            return self.doubled_obj

        return self.doubled_obj.__class__
def _determine_doubled_obj_type ( self ) : if isclass ( self . doubled_obj ) or ismodule ( self . doubled_obj ) : return self . doubled_obj return self . doubled_obj . __class__
Returns the type (class) of the target object.

        :return: The type (class) of the target.
        :rtype: type, classobj