mirror of
https://github.com/nocturn9x/asyncevents.git
synced 2026-10-05 08:32:32 +02:00
Reformatted with black
This commit is contained in:
1 parent
be7ae5d8f2
commit
c9456e0837
2 files changed
+4
-2
No files matched your search
@@ -93,5 +93,5 @@ __all__ = [
|
||||
"emit",
|
||||
"wait",
|
||||
"get_current_emitter",
|
||||
"set_current_emitter"
|
||||
"set_current_emitter",
|
||||
]
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user