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

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

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

    logger.info("Pulling assignment data")
    assignments: List[Assignment] = []
    for course in courses:
        assignments.extend(course.get_assignments())

    return assignments

    Fetch Assignments API data for a range of courses and return a list of assignments as Assignment API objects

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

    Returns
    -------
    List[Assignment]
        a list of Assignment API objects
    
Fetch Assignments API data for a range of courses and return a list of assignments as Assignment API objects
Parameters

List[Course]
a list of Canvas Course objects

Returns

List[Assignment]
a list of Assignment API objects
Fetch Assignments API data for a range of courses and return a list of assignments as Assignment API objects Parameters List [ Course ] a list of Canvas Course objects Returns List [ Assignment ] a list of Assignment API objects
def request_assignments(courses: List[Course]) -> List[Assignment]:
    logger.info("Pulling assignment data")
    assignments: List[Assignment] = []
    for course in courses:
        assignments.extend(course.get_assignments())
    return assignments
def request_assignments ( courses : List [ Course ] ) -> List [ Assignment ] : logger . info ( "Pulling assignment data" ) assignments : List [ Assignment ] = [ ] for course in courses : assignments . extend ( course . get_assignments ( ) ) return assignments
Fetch Assignments API data for a range of courses and return a list of assignments as Assignment API objects
Parameters
Fetch Assignments API data for a range of courses and return a list of assignments as Assignment API objects Parameters
"""
    Fetch Assignments API data for a range of courses and return a list of assignments as Assignment API objects

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

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