def find_section(section, lines):
    """
    Find a named section in a ``numpy``-formatted docstring.
    
    Parameters
    ----------
    section : string
        The name of the section to find
        
    lines : array of string
        The docstring, split into lines
        
    Returns
    -------
    int, int
        The indices of the first and last lines of the section.
    """
    first_line = None
    for i, line in enumerate(lines):
        if '----' in line and i > 0 and section in lines[i - 1]:
            first_line = i + 1
            break
    if first_line is None:
        return None, None
    last_line = None
    for i in range(first_line, len(lines)):
        if '---' in lines[i]:
            last_line = i - 2
            break
    if last_line is None:
        last_line = len(lines) - 1
    return first_line, last_line
