This is a cheapo chinese blinkers and brake light.
Notice the clip in the picture, that clip is atached to the brake wire. When you pull the brake handle, the cable is in tension and the clip touches and completes the circuit (light turns on in this case), when you release the brake, light...