src/nitpick/fields.py
def string_or_list_field(object_dict, parent_object_dict):  # pylint: disable=unused-argument
    """Detect if the field is a string or a list."""
    if isinstance(object_dict, list):
        return fields.List(NonEmptyString(required=True, allow_none=False))
    return NonEmptyString()
Detect if the field is a string or a list.
Detect if the field is a string or a list.
Detect if the field is a string or a list .
def string_or_list_field(object_dict, parent_object_dict):  
    if isinstance(object_dict, list):
        return fields.List(NonEmptyString(required=True, allow_none=False))
    return NonEmptyString()
def string_or_list_field ( object_dict , parent_object_dict ) : if isinstance ( object_dict , list ) : return fields . List ( NonEmptyString ( required = True , allow_none = False ) ) return NonEmptyString ( )
Detect if the field is a string or a list.
Detect if the field is a string or a list .
# pylint: disable=unused-argument """Detect if the field is a string or a list."""
object_dict
parent_object_dict