          """
          if self.instance is not None:
              return
  
          missing = dict([
              (field_name, self.missing_message)
              for field_name in self.fields
              if field_name not in attrs
          ])
          if missing:
              raise ValidationError(missing)
 
</s> remove         ])
 </s> add         } </s> remove         ])
 </s> add         } </s> remove         missing = dict([
            (field_name, self.missing_message)
 </s> add         missing = {
            field_name: self.missing_message </s> remove         filter_kwargs = dict([
            (field_name, attrs[field_name])
 </s> add         filter_kwargs = {
            field_name: attrs[field_name] </s> remove         ])
 </s> add         }
        missing = {
            field_name: self.missing_message
          """
          if self.instance is not None:
              return
  
        missing = {
            field_name: self.missing_message
        missing = {
            field_name: self.missing_message
              for field_name in self.fields
              if field_name not in attrs
          ])
          if missing:
              raise ValidationError(missing)
keep keep keep keep replace replace keep keep keep keep keep
 Replaced all dict and set conversions from lists to dict and set literals. 
rest_framework/validators.py