From 28bf5a00d7487247bb45f6e879fb479170896375 Mon Sep 17 00:00:00 2001 From: Adrian Rumpold Date: Tue, 11 Aug 2020 12:05:50 +0200 Subject: [PATCH] Only install typing dependency on Python<3.5 Installing `typing` on recent Python versions leads to the error described in python/typing#573 (running tests with tox yields `AttributeError: type object 'Callable' has no attribute '_abc_registry'`). The [`typing` readme](https://pypi.org/project/typing/) suggests to install the package only for Python versions <3.5, which this commit does. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 85c6e7de..cb72b0e3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,5 +20,5 @@ requests-file>=1.4.2 requests>=2.20.0 six>=1.11.0 tqdm>=4.19.5 -typing>=3.6.4 +typing>=3.6.4 ; python_version < '3.5' urllib3>=1.21.1