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

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

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

    logger.info("Pulling student data")
    students: List[User] = []
    for course in courses:
        students.extend(course.get_users(enrollment_type=["student"]))

    return remove_duplicates(students, "id")

    Fetch Students API data for a range of courses and return a list of students as User API objects

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

    Returns
    -------
    List[User]
        a list of User API objects
    
Fetch Students API data for a range of courses and return a list of students as User API objects
Parameters

List[Course]
a list of Canvas Course objects

Returns

List[User]
a list of User API objects
Fetch Students API data for a range of courses and return a list of students as User API objects Parameters List [ Course ] a list of Canvas Course objects Returns List [ User ] a list of User API objects
def request_students(courses: List[Course]) -> List[User]:
    logger.info("Pulling student data")
    students: List[User] = []
    for course in courses:
        students.extend(course.get_users(enrollment_type=["student"]))
    return remove_duplicates(students, "id")
def request_students ( courses : List [ Course ] ) -> List [ User ] : logger . info ( "Pulling student data" ) students : List [ User ] = [ ] for course in courses : students . extend ( course . get_users ( enrollment_type = [ "student" ] ) ) return remove_duplicates ( students , "id" )
Fetch Students API data for a range of courses and return a list of students as User API objects
Parameters
Fetch Students API data for a range of courses and return a list of students as User API objects Parameters
"""
    Fetch Students API data for a range of courses and return a list of students as User API objects

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

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