Skip to content

Commit

Permalink
Cope with Coroutine missing from typing module in Python3.5.
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic committed Mar 11, 2019
1 parent 670872b commit fe04fe2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion launch/launch/actions/opaque_coroutine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe04fe2

Please sign in to comment.