The fft functions do not specify what the output axis size should be. This is not necessarily always the same as the input axis size (or n).
For example, NumPy's ihfft uses an output shape of n//2 + 1 (https://numpy.org/doc/stable/reference/generated/numpy.fft.ihfft.html). This size is not mentioned anywhere in the spec.