Transfer the choux pastry to a mixing bowl and leave it to cool for about 10 minutes. It should be only slightly warm before adding the eggs. Beat in three eggs one at a time with the dough hooks or beaters of a hand mixer, fully incorporating each egg before adding the next. Beat the fourth egg in a small bowl and add it gradually, using only as much as needed for a smooth, glossy dough. When the beater is lifted, the dough should fall slowly in a broad, thick ribbon rather than breaking off firmly or running like a liquid.