'name' -> 'key' (copypaste fail)
This commit is contained in:
parent
06b41cb30e
commit
9827feeabd
1 changed files with 2 additions and 2 deletions
|
@ -56,9 +56,9 @@ class EventHook(object):
|
||||||
elif key in self._multi_kwargs:
|
elif key in self._multi_kwargs:
|
||||||
return self._multi_kwargs[key].copy()
|
return self._multi_kwargs[key].copy()
|
||||||
elif key in self.docstring.var_items:
|
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:
|
elif key in self.docstring.items:
|
||||||
return [self.docstring.items[name]]
|
return [self.docstring.items[key]]
|
||||||
return []
|
return []
|
||||||
def get_kwarg(self, key: str, default: typing.Any=None) -> typing.Any:
|
def get_kwarg(self, key: str, default: typing.Any=None) -> typing.Any:
|
||||||
print(self.get_kwargs(key))
|
print(self.get_kwargs(key))
|
||||||
|
|
Loading…
Reference in a new issue