In computing the taxable income of a partner for a taxable year, the inclusions required by section
702 and section
707
(c) with respect to a partnership shall be based on the income, gain, loss, deduction, or credit of the partnership for any taxable year of the partnership ending within or with the taxable year of the partner.