mirror of
https://github.com/nonebot/nonebot2.git
synced 2026-02-26 20:54:44 +00:00
💥 Remove: 移除 Python 3.9 支持 (#3860)
This commit is contained in:
@@ -12,7 +12,6 @@ FrontMatter:
|
||||
"""
|
||||
|
||||
import signal
|
||||
from typing import Optional
|
||||
from typing_extensions import override
|
||||
|
||||
import anyio
|
||||
@@ -112,7 +111,7 @@ class Driver(BaseDriver):
|
||||
if not self.should_exit.is_set():
|
||||
logger.info("Application startup completed.")
|
||||
|
||||
async def _listen_exit(self, tg: Optional[TaskGroup] = None):
|
||||
async def _listen_exit(self, tg: TaskGroup | None = None):
|
||||
await self.should_exit.wait()
|
||||
|
||||
if tg is not None:
|
||||
|
||||
Reference in New Issue
Block a user