Handle methods that have opt args but no kws

Closes PR 14726