'name' -> 'key' (copypaste fail)

This commit is contained in:
jesopo 2019-07-28 18:07:01 +01:00
parent 06b41cb30e
commit 9827feeabd

View file

@ -56,9 +56,9 @@ class EventHook(object):
elif key in self._multi_kwargs:
return self._multi_kwargs[key].copy()
elif key in self.docstring.var_items:
return self.docstring.var_items[name]
return self.docstring.var_items[key]
elif key in self.docstring.items:
return [self.docstring.items[name]]
return [self.docstring.items[key]]
return []
def get_kwarg(self, key: str, default: typing.Any=None) -> typing.Any:
print(self.get_kwargs(key))