Fix linter errors
This commit is contained in:
parent
4070057047
commit
e7e831c506
1 changed files with 5 additions and 2 deletions
|
@ -346,8 +346,11 @@ 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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue