code: def _add_cmp(cls, attrs=None):
      
      if attrs is None:
          attrs = cls.__attrs_attrs__
  
      cls.__eq__, cls.__ne__, cls.__lt__, cls.__le__, cls.__gt__, cls.__ge__ = _make_cmp(  # noqa
          attrs
      )
  
      return cls
docs: Add comparison methods to *cls*.