def __init__(self, minimum, maximum, **kwargs):
        """ Constructor that instantiates a class instance and properties.
        Keyword arguments:
        minimum int        -- Absolute minimum character length.
        max int            -- Absolute maximum character length.
        strip bool         -- Used to strip whitespace from the given field value. (optional)
        error str          -- A user-defined error messaged for a failed  (optional)
        pass_ bool -- Pass through as success if field value is blank. (optional)
        """
        if not kwargs.get('error', None):
            kwargs['error'] = "String `{}` length is not within `{}` and `{}`"
        super(length_between, self).__init__(kwargs.get('error', None), kwargs.get('pass_', False))
        self.minimum = int(minimum)
        self.maximum = int(maximum)
        self.strip = kwargs.get('strip', False)
def __init__ ( self , minimum , maximum , ** kwargs ) : if not kwargs . get ( 'error' , None ) : kwargs [ 'error' ] = "String `{}` length is not within `{}` and `{}`" super ( length_between , self ) . __init__ ( kwargs . get ( 'error' , None ) , kwargs . get ( 'pass_' , False ) ) self . minimum = int ( minimum ) self . maximum = int ( maximum ) self . strip = kwargs . get ( 'strip' , False )
Constructor that instantiates a class instance and properties.
        Keyword arguments:
        minimum int        -- Absolute minimum character length.
        max int            -- Absolute maximum character length.
        strip bool         -- Used to strip whitespace from the given field value. (optional)
        error str          -- A user-defined error messaged for a failed  (optional)
        pass_ bool -- Pass through as success if field value is blank. (optional)