refactor: reorganize imports and add whitespace

This commit is contained in:
arabcoders 2025-06-24 17:59:28 +03:00
parent 44b395aed9
commit 6ba37faf49

View file

@ -1,10 +1,10 @@
import asyncio import asyncio
import datetime import datetime
import logging import logging
from typing import Any
import uuid import uuid
from collections.abc import Awaitable from collections.abc import Awaitable
from dataclasses import dataclass, field from dataclasses import dataclass, field
from typing import Any
from .Singleton import Singleton from .Singleton import Singleton
@ -371,6 +371,7 @@ class EventBus(metaclass=Singleton):
the exception is caught and logged. If event does not exist, an empty list is returned. the exception is caught and logged. If event does not exist, an empty list is returned.
If wait is False, a list of asyncio.Task objects is returned instead if we are in a running event loop, If wait is False, a list of asyncio.Task objects is returned instead if we are in a running event loop,
or the result of the coroutine if we are not in a running event loop. or the result of the coroutine if we are not in a running event loop.
""" """
if event not in self._listeners: if event not in self._listeners:
return [] return []