def list_submissions(self, assignment, **kwargs):
from canvasapi.assignment import Assignment<EOL>warnings.warn(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>',<EOL>DeprecationWarning<EOL>)<EOL>assignment_id = obj_or_id(assignment, "<STR_LIT>", (Assignment,))<EOL>assignment = Assignment(self._requester, {<EOL>'<STR_LIT>': self.course_id,<EOL>'<STR_LIT>': self.id,<EOL>'<STR_LIT:id>': assignment_id<EOL>})<EOL>return assignment.get_submissions(**kwargs)<EOL>
Get all existing submissions for an assignment.

.. warning::
    .. deprecated:: 0.9.0
        Use :func:`canvasapi.assignment.Assignment.get_submissions` instead.

:calls: `GET /api/v1/sections/:section_id/assignments/:assignment_id/submissions  \
<https://canvas.instructure.com/doc/api/submissions.html#method.submissions_api.index>`_

:param assignment: The object or ID of the assignment.
:type assignment: :class:`canvasapi.assignment.Assignment` or int

:rtype: :class:`canvasapi.paginated_list.PaginatedList` of
    :class:`canvasapi.submission.Submission`