      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
  
 
</s> remove     if isinstance(value, list) and any([isinstance(item, (list, dict)) for item in value]):
 </s> add     if isinstance(value, list) and any(isinstance(item, (list, dict)) for item in value): </s> remove         request = self.context.get('request', None)
 </s> add         request = self.context.get('request') </s> remove         assert not (self.queryset is not None and kwargs.get('read_only', None)), (
 </s> add         assert not (self.queryset is not None and kwargs.get('read_only')), ( </s> remove             assert self.queryset is not None or kwargs.get('read_only', None), (
 </s> add             assert self.queryset is not None or kwargs.get('read_only'), ( </s> remove             if final < 1:
                final = 1
 </s> add             final = max(final, 1)
            super().__init__(*args, **kwargs)
      class CoreAPIClient(coreapi.Client):
          def __init__(self, *args, **kwargs):
              self._session = RequestsClient()
              kwargs['transports'] = [coreapi.transports.HTTPTransport(session=self.session)]
            super().__init__(*args, **kwargs)
  
          @property
          def session(self):
              return self._session
  
keep keep keep keep replace keep keep keep keep keep
 Linting fixes (#7874)

* Fixed code quality issues

- Added '.deepsource.toml' file for continuous analysis on bug risk

- Remove `return` from `__init__()` method

- Remove duplicate dictionary key(s)

- Use `max` built-in to get the maximum of two values

- Remove redundant `None` default

- Remove unnecessary comprehension

Signed-off-by: ankitdobhal <dobhal.ankit@protonmail.com>

* Delete .deepsource.toml

* Delete test_fields.py

* Reintroduce file from accidental deletion

Co-authored-by: ankitdobhal <dobhal.ankit@protonmail.com> 
rest_framework/test.py