Add returns type hint in EventManager.py.call

This commit is contained in:
jesopo 2018-12-06 10:15:12 +00:00
parent 809efc6793
commit bae1fac147

View file

@ -180,7 +180,7 @@ class EventHook(object):
) -> typing.List[typing.Any]:
event_path = self._get_path()
hooks = self.get_hooks()
returns = []
returns = [] # type: typing.List[typing.Any]
if not hooks:
self.log.trace("not calling non-hooked event \"%s\" (params: %s)",