def reply(cls, name, *args, **kwargs):
        """Helper method for creating reply messages.

        Parameters
        ----------
        name : str
            The name of the message.
        args : list of strings
            The message arguments.

        Keyword Arguments
        -----------------
        mid : str or None
            Message ID to use or None (default) for no Message ID

        """
        mid = kwargs.pop('mid', None)
        if len(kwargs) > 0:
            raise TypeError('Invalid keyword argument(s): %r' % kwargs)
        return cls(cls.REPLY, name, args, mid)
def reply ( cls , name , * args , ** kwargs ) : mid = kwargs . pop ( 'mid' , None ) if len ( kwargs ) > 0 : raise TypeError ( 'Invalid keyword argument(s): %r' % kwargs ) return cls ( cls . REPLY , name , args , mid )
Helper method for creating reply messages.

        Parameters
        ----------
        name : str
            The name of the message.
        args : list of strings
            The message arguments.

        Keyword Arguments
        -----------------
        mid : str or None
            Message ID to use or None (default) for no Message ID