              smart_repr(self.queryset),
              smart_repr(self.fields)
          )
  
  
  class ProhibitSurrogateCharactersValidator:
      message = _('Surrogate characters are not allowed: U+{code_point:X}.')
      code = 'surrogate_characters_not_allowed'
  
      def __call__(self, value):
 
</s>
    def __eq__(self, other):
        if not isinstance(other, self.__class__):
            return NotImplemented
        return (self.message == other.message
                and self.requires_context == other.requires_context
                and self.missing_message == other.missing_message
                and self.queryset == other.queryset
                and self.fields == other.fields
                )

              smart_repr(self.queryset),
              smart_repr(self.fields)
          )
  
    def __eq__(self, other):
        if not isinstance(other, self.__class__):
            return NotImplemented
        return (self.message == other.message
                and self.requires_context == other.requires_context
                and self.missing_message == other.missing_message
                and self.queryset == other.queryset
                and self.fields == other.fields
                )

  
  class ProhibitSurrogateCharactersValidator:
      message = _('Surrogate characters are not allowed: U+{code_point:X}.')
      code = 'surrogate_characters_not_allowed'
  
      def __call__(self, value):
keep keep keep add keep keep keep keep keep keep
 Implement `__eq__` for validators (#8925)

* Implement equality operator and add test coverage

* Add documentation on implementation
rest_framework/validators.py