src/canvas-extractor/edfi_canvas_extractor/api/sections.py
def request_sections(courses: List[Course]) -> List[Section]:
    """
    Fetch Sections API data for a range of courses and return a list of sections as Section API objects

    Parameters
    ----------
    courses: List[Course]
        a list of Canvas Course objects

    Returns
    -------
    List[Section]
        a list of Section API objects
    """

    logger.info("Pulling section data")
    sections: List[Section] = []
    for course in courses:
        sections.extend(course.get_sections())

    return sections

    Fetch Sections API data for a range of courses and return a list of sections as Section API objects

    Parameters
    ----------
    courses: List[Course]
        a list of Canvas Course objects

    Returns
    -------
    List[Section]
        a list of Section API objects
    
Fetch Sections API data for a range of courses and return a list of sections as Section API objects
Parameters

List[Course]
a list of Canvas Course objects

Returns

List[Section]
a list of Section API objects
Fetch Sections API data for a range of courses and return a list of sections as Section API objects Parameters List [ Course ] a list of Canvas Course objects Returns List [ Section ] a list of Section API objects
def request_sections(courses: List[Course]) -> List[Section]:
    logger.info("Pulling section data")
    sections: List[Section] = []
    for course in courses:
        sections.extend(course.get_sections())
    return sections
def request_sections ( courses : List [ Course ] ) -> List [ Section ] : logger . info ( "Pulling section data" ) sections : List [ Section ] = [ ] for course in courses : sections . extend ( course . get_sections ( ) ) return sections
Fetch Sections API data for a range of courses and return a list of sections as Section API objects
Parameters
Fetch Sections API data for a range of courses and return a list of sections as Section API objects Parameters
"""
    Fetch Sections API data for a range of courses and return a list of sections as Section API objects

    Parameters
    ----------
    courses: List[Course]
        a list of Canvas Course objects

    Returns
    -------
    List[Section]
        a list of Section API objects
    """
courses
List[Course]