Skip to content

Commit

Permalink
[bug] Replace collections.Iterable with collections.abc.Iterable (#…
Browse files Browse the repository at this point in the history
…677)

Update dynsys.py
  • Loading branch information
Routhleck authored Jun 13, 2024
1 parent c259c1b commit b9461eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainpy/_src/dynsys.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ def __init__(
else:
# should be a list/tuple/array of int
# do not check again
if not isinstance(idx, collections.Iterable):
if not isinstance(idx, collections.abc.Iterable):
raise TypeError('Should be an iterable object of int.')
size.append(len(idx))
size += list(target.varshape[len(self.index):])
Expand Down

0 comments on commit b9461eb

Please sign in to comment.