From 80536e0112e7a092bb40568bdf19dac275de3e5a Mon Sep 17 00:00:00 2001 From: harenbrs <1812261+harenbrs@users.noreply.github.com> Date: Mon, 16 Nov 2020 17:45:37 +0000 Subject: [PATCH] Fix deprecated collections import for compatibility with Python 3.9 --- p_tqdm/p_tqdm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p_tqdm/p_tqdm.py b/p_tqdm/p_tqdm.py index d4d3dc0..87726f3 100644 --- a/p_tqdm/p_tqdm.py +++ b/p_tqdm/p_tqdm.py @@ -8,7 +8,7 @@ t_imap: Returns an iterator for a sequential map. """ -from collections import Sized +from collections.abc import Sized from typing import Any, Callable, Generator, Iterable, List from pathos.helpers import cpu_count