As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
AFTER TAKEOFF, RIGHT B SYSTEM GREEN LIGHT STAYED ILLUMINATED AFTER GEAR RETRACTION. DID QRH PROCEDURE (CYCLED GEAR) BUT LIGHTS STAYED ILLUMINATED. REMOVED AND REPLACED RIGHT GEAR DOWN PROXIMITY SWITCH FOR B SYSTEM. SWUNG GEAR, OPS CHECKS GOOD.