From 725bdd0035f401a24aa24d8a4e92504f00bbe0ec Mon Sep 17 00:00:00 2001 From: He Sichao <1310722434@qq.com> Date: Thu, 13 Jun 2024 15:07:45 +0800 Subject: [PATCH] Update dynsys.py --- brainpy/_src/dynsys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brainpy/_src/dynsys.py b/brainpy/_src/dynsys.py index a6fcc16a..c20fc414 100644 --- a/brainpy/_src/dynsys.py +++ b/brainpy/_src/dynsys.py @@ -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):])