From 525c93a8763d0b3980a7e35a9a9b14d463acc9af Mon Sep 17 00:00:00 2001 From: Laurie O Date: Thu, 14 Nov 2024 14:21:27 +1000 Subject: [PATCH] Support 'collections.Iterable' import in Python 3.10+ --- tinynumpy/tinynumpy.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tinynumpy/tinynumpy.py b/tinynumpy/tinynumpy.py index b1578b7..b095f89 100644 --- a/tinynumpy/tinynumpy.py +++ b/tinynumpy/tinynumpy.py @@ -46,7 +46,6 @@ from math import sqrt from copy import copy, deepcopy -from collections import Iterable import operator import tinynumpy.tinylinalg as linalg @@ -56,6 +55,10 @@ if sys.version_info >= (3, ): xrange = range + from collections.abc import Iterable +else: + from collections import Iterable + # Define version numer __version__ = '0.0.1dev'