Reformatted with black

This commit is contained in:
nocturn9x 2021-12-24 19:14:27 +01:00
parent be7ae5d8f2
commit c9456e0837
2 changed files with 4 additions and 2 deletions

View File

@ -93,5 +93,5 @@ __all__ = [
"emit",
"wait",
"get_current_emitter",
"set_current_emitter"
"set_current_emitter",
]

View File

@ -134,7 +134,9 @@ class AsyncEventEmitter:
# This implementation of emit() returns only after
# all handlers have finished executing
await self._check_event(event)
temp: List[Tuple[int, float, Callable[["AsyncEventEmitter", str], Coroutine[Any, Any, Any]], bool]] = self.handlers[event].copy()
temp: List[
Tuple[int, float, Callable[["AsyncEventEmitter", str], Coroutine[Any, Any, Any]], bool]
] = self.handlers[event].copy()
t: Tuple[int, float, Callable[["AsyncEventEmitter", str], Coroutine[Any, Any, Any]], bool]
while temp:
# We use heappop because we want the first