[1.7.x] Fixed #23473 -- Documented that @deconstructible classes need __eq__.

Backport of 066e672d79 from master