34 """
35
36 def __init__(self, modules=[], loadpath=None):
37 augeas.Augeas.__init__(self, loadpath=loadpath, flags=augeas.Augeas.NO_MODL_AUTOLOAD | augeas.Augeas.NO_LOAD) 38 for module in modules:
39 path = f'/augeas/load/{module["name"]}'
40 self.set(f'{path}/lens', module['lens'])
The function call has passed a keyword argument that doesn't correspond to one of the function's parameter names. This is an error.
def update_count(item, available=True)
if available:
count[item] += 1
update_count("coffee", is_available=True) # Wrong keyword arguemnt used
def update_count(item, available=True)
if available:
count[item] += 1
update_count("coffee", available=False)