In the ideal gas approximation, gasses are treated as non-reacting and identical, so it doesn't matter if it's a single gas in a container or a mixture of gasses. n in either case is the total number of moles of gas. Because the partial pressures are additive, you can also treat each gas separately. The implication is that the partial pressure of the gas, for a mixture of ideal gasses, scales with the respective mole fraction.