Unexpected keyword argument 'plot_width' in function call
252 plots.append(p)
253
254 output_file("grid.html")
255 grid = gridplot(plots, ncols=ncol, plot_width=width, plot_height=height)256 return grid
257
258
Unexpected keyword argument 'plot_height' in function call
252 plots.append(p)
253
254 output_file("grid.html")
255 grid = gridplot(plots, ncols=ncol, plot_width=width, plot_height=height)256 return grid
257
258
Description
The function call has passed a keyword argument that doesn't correspond to one of the function's parameter names. This is an error.
Bad practice
def update_count(item, available=True)
if available:
count[item] += 1
update_count("coffee", is_available=True) # Wrong keyword arguemnt used
Recommended:
def update_count(item, available=True)
if available:
count[item] += 1
update_count("coffee", available=False)