Reformatted with black

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

No files matched your search

+1 -1
View File
@@ -93,5 +93,5 @@ __all__ = [
"emit",
"wait",
"get_current_emitter",
"set_current_emitter"
"set_current_emitter",
]
+3 -1
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