Skip to content

Commit

Permalink
🚨 auto fix by pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 3, 2024
1 parent 12b3d0e commit c22e120
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
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c22e120

Please sign in to comment.