losses from wagering transactions

Losses from wagering transactions shall be allowed only to the extent of the gains from such transactions. For purposes of the preceding sentence, in the case of taxable years beginning after December 31, 2017 , and before January 1, 2026 , the term “losses from wagering transactions” includes any deduction otherwise allowable under this chapter incurred in carrying on any wagering transaction.

Source

26 USC § 165(d)


Scoping language

None identified, default scope is assumed to be the parent (part VI) of this section.
Is this correct? or