(cls, post_data, additional_keys)
return missing_keys[0]
Finds a missing required key in the case that trying to create an instance
    failed with a TypeError.
Finds a missing required key in the case that trying to create an instance
    failed with a TypeError.
Finds a missing required key in the case that trying to create an instance failed with a TypeError .
def _find_missing_required_key(cls, post_data, additional_keys):
    """
    Finds a missing required key in the case that trying to create an instance
    failed with a TypeError.
    """
    fields_by_name = {field.name: field for field in attr.fields(cls)}
    specified_keys = {key for sublist in [post_data.keys(), additional_keys]
                      for key in sublist}
    missing_keys = [key for key in fields_by_name
                    if fields_by_name[key].default is attr.NOTHING and key not in specified_keys]
    return missing_keys[0]
def _find_missing_required_key ( cls , post_data , additional_keys ) : fields_by_name = { field . name : field for field in attr . fields ( cls ) } specified_keys = { key for sublist in [ post_data . keys ( ) , additional_keys ] for key in sublist } missing_keys = [ key for key in fields_by_name if fields_by_name [ key ] . default is attr . NOTHING and key not in specified_keys ] return missing_keys [ 0 ]