def disqualified(self, num, natural=True, **kwargs):
        """Search for disqualified officers by officer ID.

        Searches for natural disqualifications by default. Specify
        natural=False to search for corporate disqualifications.

        Args:
           num (str): Company number to search on.
           natural (Optional[bool]): Natural or corporate search
           kwargs (dict): additional keywords passed into
            requests.session.get *params* keyword.
        """
        search_type = 'natural' if natural else 'corporate'
        baseuri = (self._BASE_URI +
                   'disqualified-officers/{}/{}'.format(search_type, num))
        res = self.session.get(baseuri, params=kwargs)
        self.handle_http_error(res)
        return res
def disqualified ( self , num , natural = True , ** kwargs ) : search_type = 'natural' if natural else 'corporate' baseuri = ( self . _BASE_URI + 'disqualified-officers/{}/{}' . format ( search_type , num ) ) res = self . session . get ( baseuri , params = kwargs ) self . handle_http_error ( res ) return res
Search for disqualified officers by officer ID.

        Searches for natural disqualifications by default. Specify
        natural=False to search for corporate disqualifications.

        Args:
           num (str): Company number to search on.
           natural (Optional[bool]): Natural or corporate search
           kwargs (dict): additional keywords passed into
            requests.session.get *params* keyword.