          self.child = kwargs.pop('child', copy.deepcopy(self.child))
          self.allow_empty = kwargs.pop('allow_empty', True)
          assert self.child is not None, '`child` is a required argument.'
          assert not inspect.isclass(self.child), '`child` has not been instantiated.'
          super(ListSerializer, self).__init__(*args, **kwargs)
          self.child.bind(field_name='', parent=self)
  
      def bind(self, field_name, parent):
          super(ListSerializer, self).bind(field_name, parent)
          self.partial = self.parent.partial
 
</s> remove         super(ListSerializer, self).bind(field_name, parent)
 </s> add         super().bind(field_name, parent) </s> remove         super(ManyRelatedField, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         super(DictField, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         super(SlugRelatedField, self).__init__(**kwargs)
 </s> add         super().__init__(**kwargs) </s> remove         assert field.run_validation(1) is 1
 </s> add         assert field.run_validation(1) == 1
        super().__init__(*args, **kwargs)
          self.child = kwargs.pop('child', copy.deepcopy(self.child))
          self.allow_empty = kwargs.pop('allow_empty', True)
          assert self.child is not None, '`child` is a required argument.'
          assert not inspect.isclass(self.child), '`child` has not been instantiated.'
        super().__init__(*args, **kwargs)
          self.child.bind(field_name='', parent=self)
  
      def bind(self, field_name, parent):
          super(ListSerializer, self).bind(field_name, parent)
          self.partial = self.parent.partial
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
rest_framework/serializers.py