(args, kwargs)
return '({})'.format(', '.join(items))
Format function arguments and keyword arguments.

    Special case for a single parameter: ('hello',) is formatted as ('hello').
Format function arguments and keyword arguments.
Format function arguments and keyword arguments .
def _format_args_and_kwargs(args, kwargs):
    """Format function arguments and keyword arguments.

    Special case for a single parameter: ('hello',) is formatted as ('hello').
    """
    # use reprlib to limit the length of the output
    items = []
    if args:
        items.extend(reprlib.repr(arg) for arg in args)
    if kwargs:
        items.extend(f'{k}={reprlib.repr(v)}' for k, v in kwargs.items())
    return '({})'.format(', '.join(items))
def _format_args_and_kwargs ( args , kwargs ) : # use reprlib to limit the length of the output items = [ ] if args : items . extend ( reprlib . repr ( arg ) for arg in args ) if kwargs : items . extend ( f'{k}={reprlib.repr(v)}' for k , v in kwargs . items ( ) ) return '({})' . format ( ', ' . join ( items ) )