Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install typing module only for python<3.5
This prevents shadowing the version of the module that comes with the stdlib since Python 3.5. Quoting from the package pypi site (https://pypi.org/project/typing/): "For package maintainers, it is preferred to use typing;python_version<"3.5" if your package requires it to support earlier Python versions. This will avoid shadowing the stdlib typing module when your package is installed via pip install -t . on Python 3.5 or later." Incidentally, this fixes some bug caused by the two versions of typing coexisting that arises in some versions of Python 3.7, see e.g.: pypa/pip#8272 https://travis-ci.community/t/python-3-7-and-3-8-builds-are-failing-attributeerror-type-object-callable-has-no-attribute-abc-registry/10900
- Loading branch information