diff --git a/src/asphalt/core/_component.py b/src/asphalt/core/_component.py index 847e17b9..a006acb5 100644 --- a/src/asphalt/core/_component.py +++ b/src/asphalt/core/_component.py @@ -5,7 +5,6 @@ from typing import Any from warnings import warn -from anyio import create_task_group from anyio.abc import TaskGroup from anyio.lowlevel import cancel_shielded_checkpoint @@ -116,7 +115,6 @@ async def start(self, ctx: Context) -> None: self.add_component(alias) async def start_child_components(): - for component in self.child_components.values(): component._task_group = self._task_group self._task_group.start_soon(component.start, ctx) diff --git a/src/asphalt/core/_runner.py b/src/asphalt/core/_runner.py index a9042dcd..0268e1cd 100644 --- a/src/asphalt/core/_runner.py +++ b/src/asphalt/core/_runner.py @@ -16,7 +16,7 @@ sleep, to_thread, ) -from anyio.abc import TaskGroup, TaskStatus +from anyio.abc import TaskStatus from exceptiongroup import catch from ._component import Component, component_types