(self, data, accepted_type, name='')
Check data type belongs to specified type
        Parameters
        ----------
        data: :obj:`any`
            real type of the data
        accepted_type: :obj:`type`
            accepted type
        name: :obj:`str`
            name of the parameter
Check data type belongs to specified type
        Parameters
        ----------
        data: :obj:`any`
            real type of the data
        accepted_type: :obj:`type`
            accepted type
        name: :obj:`str`
            name of the parameter
Check data type belongs to specified type Parameters ---------- data : : obj : any real type of the data accepted_type : : obj : type accepted type name : : obj : str name of the parameter
def check(self, data, accepted_type, name=''):
        """
        Check data type belongs to specified type
        Parameters
        ----------
        data: :obj:`any`
            real type of the data
        accepted_type: :obj:`type`
            accepted type
        name: :obj:`str`
            name of the parameter
        """
        if not isinstance(data, accepted_type):
            self.raise_exc(data, accepted_type.__name__, name=name)
def check ( self , data , accepted_type , name = '' ) : if not isinstance ( data , accepted_type ) : self . raise_exc ( data , accepted_type . __name__ , name = name )