Skip to content

Commit

Permalink
check for Sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Nov 29, 2023
1 parent e5952e9 commit 13cae2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spinn_utilities/ranged/ranged_list_of_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from collections.abc import Iterable
from collections.abc import Sequence
from typing import Generic, List
from spinn_utilities.helpful_functions import is_singleton
from spinn_utilities.overrides import overrides
Expand All @@ -29,7 +29,7 @@ def listness_check(self, value: ValueType) -> bool:
raise TypeError(
"Value must be an iterable or iterable of iterables")
try:
if not isinstance(value, Iterable):
if not isinstance(value, Sequence):
raise TypeError
# Must be an iterable
if len(value) == 0:
Expand Down

0 comments on commit 13cae2a

Please sign in to comment.