Fix linter errors

This commit is contained in:
Christophe Bedard 2019-12-31 20:19:56 -05:00
parent 4070057047
commit e7e831c506

View file

@ -347,7 +347,10 @@ class Processor():
:param handler_type: the type of EventHandler subclass to find
:return: the EventHandler instance if found, otherwise `None`
"""
return next((handler for handler in self._expanded_handlers if type(handler) is handler_type), None)
return next(
(handler for handler in self._expanded_handlers if type(handler) is handler_type),
None,
)
@staticmethod
def get_event_names(