  python primitives.
  2. The process of marshalling between python primitives and request and
  response content is handled by parsers and renderers.
  """
  import copy
  import inspect
  import traceback
  from collections import OrderedDict, defaultdict
  from collections.abc import Mapping
 
</s> remove         except TypeError:  # Input is an unhashable type
            pass
 </s> add 
import contextlib
  python primitives.
  2. The process of marshalling between python primitives and request and
  response content is handled by parsers and renderers.
  """
import contextlib
  import copy
  import inspect
  import traceback
  from collections import OrderedDict, defaultdict
  from collections.abc import Mapping
keep keep keep add keep keep keep keep keep
 Refactor: Replace try/except with contextlib.suppress() (#8676) 
rest_framework/serializers.py