As indicated in Patent Document 1, in cases where there is employed a structure in which terminal portions of a magnet wire constituting a stator coil are used as lead wires, the lead wires are caused to pass through an end member of a motor housing and are led out linearly to an exterior, and distal ends of the led out lead wires are directly connected to terminal sections provided to the electrical-unit side, it is preferable to make it possible to automatically connect the distal ends of the lead wires and the electrical-unit-side terminal sections through use of an automatic assembly machine. For this purpose, it is necessary to maximally reduce an amount by which a leading-out direction of the lead wires deviates from a prescribed leading-out direction, and to make it possible to keep an amount by which distal-end positions of the lead wires deviate from prescribed positions within a permissible range. When the amount by which the distal-end positions of the lead wires deviate exceeds the permissible range, a positional relationship between the distal ends of the lead wires and the electrical-unit-side terminal section will not be regular (e.g., the distal ends and the terminal section do not correctly overlap) during attachment of the electrical unit to an end member that closes one end side of the motor housing, therefore making it impossible to automatically connect the distal ends of the lead wires and the electrical-unit-side terminal section through use of an automatic assembly machine, etc.