def update_submission(self, assignment, user, **kwargs):
from canvasapi.assignment import Assignment<EOL>from canvasapi.user import User<EOL>warnings.warn(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>',<EOL>DeprecationWarning<EOL>)<EOL>assignment_id = obj_or_id(assignment, "<STR_LIT>", (Assignment,))<EOL>user_id = obj_or_id(user, "<STR_LIT:user>", (User,))<EOL>submission = Submission(self._requester, {<EOL>'<STR_LIT>': self.id,<EOL>'<STR_LIT>': assignment_id,<EOL>'<STR_LIT>': user_id,<EOL>})<EOL>return submission.edit(**kwargs)<EOL>
Comment on and/or update the grading for a student's assignment submission.

.. warning::
    .. deprecated:: 0.9.0
        Use :func:`canvasapi.submission.Submission.edit` instead.

:calls: `PUT /api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id \
<https://canvas.instructure.com/doc/api/submissions.html#method.submissions_api.update>`_

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

:rtype: :class:`canvasapi.submission.Submission`