Return the correct type when yielding an empty dict.