@@ -49,7 +49,7 @@ def __init__(self):
4949
5050 def trigger (self , result ):
5151 """
52- Trigger the event and notify all listeners with the given result.
52+ Trigger the event and notify all listeners with the given ` result` .
5353 """
5454 for listener in self ._listeners :
5555 if is_awaitable (listener ):
@@ -61,7 +61,7 @@ def add_listener(self, listener):
6161 """
6262 Add a function to be called when this event is triggered.
6363
64- The listener must be callable. It can be either a regular function
64+ The ` listener` must be callable. It can be either a regular function
6565 or an async function. Duplicate listeners are ignored.
6666 """
6767 if not callable (listener ):
@@ -72,7 +72,7 @@ def add_listener(self, listener):
7272
7373 def remove_listener (self , * listeners ):
7474 """
75- Remove specified listeners. If none specified, remove all listeners.
75+ Remove specified ` listeners` . If none specified, remove all listeners.
7676 """
7777 if listeners :
7878 for listener in listeners :
@@ -166,7 +166,7 @@ def decorator(func):
166166
167167def _get_elements (selector ):
168168 """
169- Convert various selector types into a list of DOM elements.
169+ Convert various ` selector` types into a list of DOM elements.
170170 """
171171 from pyscript .web import Element , ElementCollection
172172
@@ -184,7 +184,7 @@ def _get_elements(selector):
184184
185185def _create_wrapper (func ):
186186 """
187- Create an appropriate wrapper for the given function.
187+ Create an appropriate wrapper for the given function, `func` .
188188
189189 The wrapper handles both sync and async functions, and respects whether
190190 the function expects to receive event arguments.
0 commit comments