python typing module missing the Coroutine class in python 3.5
问题 I am trying to write code which uses the Coroutine class, as described in the typing documentation. It's look like it's available in python 3.5 , but when I am typing to import it throws me an ImportError : In [1]: from typing import Coroutine ImportError: cannot import name 'Coroutine' Then, I tried to run the code in Python 3.6 and it worked fine. Does this class not available in python 3.5 ? If not, why it's appear in the documentation (of python 3.5 in particular)? I tried to run it with