fix: ruff

This commit is contained in:
youhuanghe
2026-03-22 03:40:24 +00:00
committed by WangCham
parent 76fbd08680
commit a7664d1665
12 changed files with 119 additions and 91 deletions

View File

@@ -508,7 +508,11 @@ class PluginRuntimeConnector(ManagedRuntimeConnector):
def dispose(self):
# On non-Windows stdio mode, terminate via the controller's process handle.
# On Windows, the managed subprocess is cleaned up by the base class.
if self.is_enable_plugin and hasattr(self, 'ctrl') and isinstance(self.ctrl, stdio_client_controller.StdioClientController):
if (
self.is_enable_plugin
and hasattr(self, 'ctrl')
and isinstance(self.ctrl, stdio_client_controller.StdioClientController)
):
self.ap.logger.info('Terminating plugin runtime process...')
self.ctrl.process.terminate()