Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🚨 auto fix by pre-commit hooks
Browse files Browse the repository at this point in the history
pre-commit-ci[bot] committed Jul 2, 2024
1 parent db3d615 commit 1089a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nonebot/adapters/dodo/adapter.py
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ def __init__(self, driver: Driver, **kwargs: Any):
super().__init__(driver, **kwargs)
self.dodo_config = get_plugin_config(Config)
self.api_base: URL = URL("https://botopen.imdodo.com/api/v2")
self.tasks: List["asyncio.Task"] = []
self.tasks: List[asyncio.Task] = []
self.setup()

@classmethod
@@ -86,7 +86,7 @@ async def run_bot(self, bot_info: BotConfig) -> None:

async def _forward_ws(self, bot: Bot, ws_url: URL) -> None:
request = Request("GET", ws_url, timeout=30.0)
heartbeat_task: Optional["asyncio.Task"] = None
heartbeat_task: Optional[asyncio.Task] = None
while True:
try:
async with self.websocket(request) as ws:

0 comments on commit 1089a87

Please sign in to comment.