src/google-classroom-extractor/edfi_google_classroom_extractor/api/courses.py
def request_courses(resource: Optional[Resource]) -> List[Dict[str, str]]:
    """
    Fetch Course API data for all courses and return a list of course data

    Parameters
    ----------
    resource: Optional[Resource]
        a Google Classroom SDK Resource

    Returns
    -------
    List[Dict[str, str]]
        a list of Google Classroom Course resources,
            see https://developers.google.com/classroom/reference/rest/v1/courses
    """

    if resource is None:
        return []

    return call_api(
        cast(ResourceType, resource).courses().list,
        {},
        "courses",
    )

    Fetch Course API data for all courses and return a list of course data

    Parameters
    ----------
    resource: Optional[Resource]
        a Google Classroom SDK Resource

    Returns
    -------
    List[Dict[str, str]]
        a list of Google Classroom Course resources,
            see https://developers.google.com/classroom/reference/rest/v1/courses
    
Fetch Course API data for all courses and return a list of course data
Parameters

Optional[Resource]
a Google Classroom SDK Resource

Returns


Fetch Course API data for all courses and return a list of course data Parameters Optional [ Resource ] a Google Classroom SDK Resource Returns
def request_courses(resource: Optional[Resource]) -> List[Dict[str, str]]:
    if resource is None:
        return []
    return call_api(
        cast(ResourceType, resource).courses().list,
        {},
        "courses",
    )
def request_courses ( resource : Optional [ Resource ] ) -> List [ Dict [ str , str ] ] : if resource is None : return [ ] return call_api ( cast ( ResourceType , resource ) . courses ( ) . list , { } , "courses" , )
Fetch Course API data for all courses and return a list of course data
Parameters
Fetch Course API data for all courses and return a list of course data Parameters
"""
    Fetch Course API data for all courses and return a list of course data

    Parameters
    ----------
    resource: Optional[Resource]
        a Google Classroom SDK Resource

    Returns
    -------
    List[Dict[str, str]]
        a list of Google Classroom Course resources,
            see https://developers.google.com/classroom/reference/rest/v1/courses
    """
resource
Optional[Resource]