Skip to content

Commit 428e9a0

Browse files
fix other type
1 parent 7b7a8b7 commit 428e9a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

curtsies/input.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,9 @@ def callback(when: float) -> None:
339339

340340
return callback
341341

342-
def threadsafe_event_trigger(self, event_type: Type[events.Event]) -> Callable:
342+
def threadsafe_event_trigger(
343+
self, event_type: Union[Type[events.Event], Callable[..., None]]
344+
) -> Callable:
343345
"""Returns a callback to creates events, interrupting current event requests.
344346
345347
Returned callback function will create an event of type event_type

0 commit comments

Comments
 (0)