      class CoreAPIClient(coreapi.Client):
          def __init__(self, *args, **kwargs):
              self._session = RequestsClient()
              kwargs['transports'] = [coreapi.transports.HTTPTransport(session=self.session)]
              return super(CoreAPIClient, self).__init__(*args, **kwargs)
  
          @property
          def session(self):
              return self._session
  
 
</s> remove         super(ReturnList, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         super(ReturnDict, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         super(_UnvalidatedField, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove             super(RequestsClient, self).__init__(*args, **kwargs)
 </s> add             super().__init__(*args, **kwargs) </s> remove         super(SchemaView, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs)
            return super().__init__(*args, **kwargs)
      class CoreAPIClient(coreapi.Client):
          def __init__(self, *args, **kwargs):
              self._session = RequestsClient()
              kwargs['transports'] = [coreapi.transports.HTTPTransport(session=self.session)]
            return super().__init__(*args, **kwargs)
  
          @property
          def session(self):
              return self._session
  
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/test.py