Skip to content

Commit

Permalink
Support 'collections.Iterable' import in Python 3.10+
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicWink committed Nov 14, 2024
1 parent 0d23d22 commit 525c93a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tinynumpy/tinynumpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@

from math import sqrt
from copy import copy, deepcopy
from collections import Iterable
import operator

import tinynumpy.tinylinalg as linalg
Expand All @@ -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'

Expand Down

0 comments on commit 525c93a

Please sign in to comment.