Removed old inaccurate note from docstring

This commit is contained in:
Nocturn9x 2022-01-31 12:34:30 +01:00
parent 17a2a2ca4e
commit 207716b6cf
1 changed files with 0 additions and 2 deletions

View File

@ -46,8 +46,6 @@ class AsyncEventEmitter:
is a coroutine function, it is awaited with the AsyncEventEmitter instance and the event name as arguments. is a coroutine function, it is awaited with the AsyncEventEmitter instance and the event name as arguments.
Defaults to UnknownEventHandling.IGNORE, which does nothing (other enum values are LOG, which Defaults to UnknownEventHandling.IGNORE, which does nothing (other enum values are LOG, which
prints a log message on the logging.WARNING level, and ERROR which raises an UnknownEvent exception) prints a log message on the logging.WARNING level, and ERROR which raises an UnknownEvent exception)
Note: if the given callable is a coroutine, it is awaited, while it's called normally otherwise
and its return value is discarded
:type on_unknown_event: Union[UnknownEventHandling, Callable[[AsyncEventEmitter, str], Coroutine[Any, Any, Any]]], :type on_unknown_event: Union[UnknownEventHandling, Callable[[AsyncEventEmitter, str], Coroutine[Any, Any, Any]]],
optional optional
:param mode: Tells the emitter how event handlers should be spawned. It should be an entry of the :param mode: Tells the emitter how event handlers should be spawned. It should be an entry of the