From 07256182fbf2f649bf55bf68d2ac2ac3bc0e1593 Mon Sep 17 00:00:00 2001 From: DrSmoothl <1787882683@qq.com> Date: Fri, 20 Mar 2026 01:20:22 +0800 Subject: [PATCH] =?UTF-8?q?refactor(manager):=20=E4=BD=BF=E7=94=A8=20List?= =?UTF-8?q?=20=E7=B1=BB=E5=9E=8B=E6=9B=BF=E4=BB=A3=20list=EF=BC=8C?= =?UTF-8?q?=E5=A2=9E=E5=BC=BA=E7=B1=BB=E5=9E=8B=E4=B8=80=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/platform_io/manager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform_io/manager.py b/src/platform_io/manager.py index 6135a567..97835667 100644 --- a/src/platform_io/manager.py +++ b/src/platform_io/manager.py @@ -1,6 +1,6 @@ """提供 Platform IO 层的中心 Broker 管理器。""" -from typing import TYPE_CHECKING, Any, Awaitable, Callable, Dict, Optional +from typing import TYPE_CHECKING, Any, Awaitable, Callable, Dict, List, Optional import hashlib import json @@ -59,7 +59,7 @@ class PlatformIOManager: if self._started: return - started_drivers: list[PlatformIODriver] = [] + started_drivers: List[PlatformIODriver] = [] try: for driver in self._driver_registry.list(): await driver.start() @@ -86,7 +86,7 @@ class PlatformIOManager: if not self._started: return - stop_errors: list[str] = [] + stop_errors: List[str] = [] for driver in reversed(self._driver_registry.list()): try: await driver.stop()