aio-libs / async-timeout

asyncio-compatible timeout class

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version 3.0.0 fails on python 3.5.1

xobb1t opened this issue · comments

Hi!

It was added some type hints in version 3.0.0. But in python 3.5.1 typing.Type is not available.

from typing import Optional, Type
ImportError: cannot import name 'Type'

Surely yes.
Old versions have been dropped, the minimally supported python is 3.5.3: https://github.com/aio-libs/async-timeout/blob/master/setup.py#L43
How did you install a fresh asyncio-timeout on old Python? pip should forbid it.