<filename>moodle/core/user/enrolled_course.py
from moodle.attr import dataclass


@dataclass
class EnrolledCourse:
    """
    id (int): Id of the course
    fullname (str): Fullname of the course
    shortname (str): Shortname of the course
    """

    id: int
    fullname: str
    shortname: str

<filename>moodle/core/user/enrolled_course.py
from moodle.attr import dataclass


@dataclass
class EnrolledCourse:
    """
    id (int): Id of the course
    fullname (str): Fullname of the course
    shortname (str): Shortname of the course
    """

    id: int
    fullname: str
    shortname: str

id (int): Id of the course     fullname (str): Fullname of the course     shortname (str): Shortname of the course