def func_accepts_var_args(func):
 return any((p for p in inspect.signature(func).parameters.values() if (p.kind == p.VAR_POSITIONAL)))

def func_accepts_var_args ( func ) : return any ( ( p for p in inspect . signature ( func ) . parameters . values ( ) if ( p . kind == p . VAR_POSITIONAL ) ) )
return true if function func accepts positional arguments *args .