Fix typo in decorator per https://github.com/astropy/astropy/pull/2835/files#r16432656