diff --git a/launch/launch/actions/opaque_coroutine.py b/launch/launch/actions/opaque_coroutine.py index e9f46b9af..581f6a910 100644 --- a/launch/launch/actions/opaque_coroutine.py +++ b/launch/launch/actions/opaque_coroutine.py @@ -17,7 +17,12 @@ import asyncio import collections.abc from typing import Any -from typing import Coroutine +try: + from typing import Coroutine +except ImportError: + # Coroutine is missing from the typing + # module in Python pre-3.6 + from collections.abc import Coroutine from typing import Dict from typing import Iterable from typing import List