Skip to content

Commit 84bf375

Browse files
authored
Merge pull request #513 from thewtex/collections-abc-sequence
BUG: import Sequence from collections.abc
2 parents 9c810f6 + c6462a0 commit 84bf375

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

itkwidgets/trait_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
import six
3-
import collections
3+
from collections.abc import Sequence
44
from datetime import datetime
55

66
import traitlets
@@ -350,7 +350,7 @@ def validate(self, obj, value):
350350
# list
351351
geometries = value
352352
if not isinstance(geometries, dict) and not isinstance(
353-
geometries, collections.Sequence) and geometries is not None:
353+
geometries, Sequence) and geometries is not None:
354354
geometries = [geometries]
355355

356356
try:
@@ -578,7 +578,7 @@ def validate(self, obj, value):
578578
# list
579579
point_sets = value
580580
if not isinstance(point_sets, dict) and not isinstance(
581-
point_sets, collections.Sequence) and point_sets is not None:
581+
point_sets, Sequence) and point_sets is not None:
582582
point_sets = [point_sets]
583583

584584
try:

0 commit comments

Comments
 (0)