def get_assignments(self, course, **kwargs):
from canvasapi.assignment import Assignment<EOL>from canvasapi.course import Course<EOL>course_id = obj_or_id(course, "<STR_LIT>", (Course,))<EOL>return PaginatedList(<EOL>Assignment,<EOL>self._requester,<EOL>'<STR_LIT:GET>',<EOL>'<STR_LIT>'.format(self.id, course_id),<EOL>_kwargs=combine_kwargs(**kwargs)<EOL>)<EOL>
Return the list of assignments for this user if the current
user (the API key owner) has rights to view. See List assignments for valid arguments.

:calls: `GET /api/v1/users/:user_id/courses/:course_id/assignments \
<https://canvas.instructure.com/doc/api/assignments.html#method.assignments_api.user_index>`_

:param course: The object or ID of the course to retrieve.
:type course: :class:`canvasapi.course.Course` or int

:rtype: :class:`canvasapi.paginated_list.PaginatedList` of
    :class:`canvasapi.assignment.Assignment`