@@ -204,7 +204,7 @@ def _wait_for_read_ready_or_timeout(
204204 remaining_timeout = max (remaining_timeout - (time .time () - t0 ), 0 )
205205
206206 def send (
207- self , timeout : Optional [Union [float , int , None ]] = None
207+ self , timeout : Optional [Union [float , None ]] = None
208208 ) -> Union [None , str , events .Event ]:
209209 """Returns an event or None if no events occur before timeout."""
210210 if self .sigint_event and is_main_thread ():
@@ -315,7 +315,7 @@ def _nonblocking_read(self) -> int:
315315
316316 def event_trigger (
317317 self , event_type : Union [Type [events .Event ], Callable [..., None ]]
318- ) -> Callable :
318+ ) -> Callable [..., None ] :
319319 """Returns a callback that creates events.
320320
321321 Returned callback function will add an event of type event_type
@@ -341,7 +341,7 @@ def callback(when: float) -> None:
341341
342342 def threadsafe_event_trigger (
343343 self , event_type : Union [Type [events .Event ], Callable [..., None ]]
344- ) -> Callable :
344+ ) -> Callable [..., None ] :
345345 """Returns a callback to creates events, interrupting current event requests.
346346
347347 Returned callback function will create an event of type event_type
0 commit comments