(self, editable=False, max_length=128, factory=None, **kwargs)
Parameters
        ----------
        editable: bool
            If true token is editable.
        max_length: int
            Maximum length of the token.
        factory: callable
            If provided, called with max_length of the field instance to generate token.

        Raises
        ------
        TypeError
            non-callable value for factory is not supported.
Parameters
        ----------
        editable: bool
            If true token is editable.
        max_length: int
            Maximum length of the token.
        factory: callable
            If provided, called with max_length of the field instance to generate token.
Parameters ---------- editable : bool If true token is editable . max_length : int Maximum length of the token . factory : callable If provided called with max_length of the field instance to generate token .
def __init__(self, editable=False, max_length=128, factory=None, **kwargs):
        """
        Parameters
        ----------
        editable: bool
            If true token is editable.
        max_length: int
            Maximum length of the token.
        factory: callable
            If provided, called with max_length of the field instance to generate token.

        Raises
        ------
        TypeError
            non-callable value for factory is not supported.
        """

        if factory is not None and not isinstance(factory, Callable):
            raise TypeError("'factory' should either be a callable not 'None'")
        self._factory = factory

        kwargs.pop('default', None)  # passing default value has not effect.

        super().__init__(editable=editable, max_length=max_length, **kwargs)
def __init__ ( self , editable = False , max_length = 128 , factory = None , * * kwargs ) : if factory is not None and not isinstance ( factory , Callable ) : raise TypeError ( "'factory' should either be a callable not 'None'" ) self . _factory = factory kwargs . pop ( 'default' , None ) # passing default value has not effect. super ( ) . __init__ ( editable = editable , max_length = max_length , * * kwargs )