parameters: (docstr)
docstring: Search `docstr` (in numpydoc format) for type(-s) of function returns.
docstring_summary: Search `docstr` (in numpydoc format) for type(-s) of function returns.
docstring_tokens: Search docstr ( in numpydoc format ) for type ( - s ) of function returns .
function: def _search_return_in_numpydocstr(docstr):
      """
      Search `docstr` (in numpydoc format) for type(-s) of function returns.
      """
      try:
          doc = _get_numpy_doc_string_cls()(docstr)
      except ImportError:
          return
      try:
          # This is a non-public API. If it ever changes we should be
          # prepared and return gracefully.
          returns = doc._parsed_data['Returns']
          returns += doc._parsed_data['Yields']
      except (KeyError, AttributeError):
          return
      for r_name, r_type, r_descr in returns:
          # Return names are optional and if so the type is in the name
          if not r_type:
              r_type = r_name
          for type_ in _expand_typestr(r_type):
              yield type_
function_tokens: def _search_return_in_numpydocstr ( docstr ) : try : doc = _get_numpy_doc_string_cls ( ) ( docstr ) except ImportError : return try : # This is a non-public API. If it ever changes we should be # prepared and return gracefully. returns = doc . _parsed_data [ 'Returns' ] returns += doc . _parsed_data [ 'Yields' ] except ( KeyError , AttributeError ) : return for r_name , r_type , r_descr in returns : # Return names are optional and if so the type is in the name if not r_type : r_type = r_name for type_ in _expand_typestr ( r_type ) : yield type_