modified code snippet to reflect that accept returns an AcceptType object instead of a string since v1.4.0

Fixed a broken documentation snippet.