File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ def _on_error(self, exc: Exception) -> bool:
166
166
167
167
return was_handled
168
168
169
- def add_listener (self , listener : Listener ) -> None :
169
+ def add_listener (self , listener : MessageRecipient ) -> None :
170
170
"""Add new Listener to the notification list.
171
171
If it is already present, it will be called two times
172
172
each time a message arrives.
@@ -175,7 +175,7 @@ def add_listener(self, listener: Listener) -> None:
175
175
"""
176
176
self .listeners .append (listener )
177
177
178
- def remove_listener (self , listener : Listener ) -> None :
178
+ def remove_listener (self , listener : MessageRecipient ) -> None :
179
179
"""Remove a listener from the notification list. This method
180
180
throws an exception if the given listener is not part of the
181
181
stored listeners.
You can’t perform that action at this time.
0 commit comments