Skip to content

Commit

Permalink
Merge pull request #513 from thewtex/collections-abc-sequence
Browse files Browse the repository at this point in the history
BUG: import Sequence from collections.abc
  • Loading branch information
thewtex authored Sep 22, 2022
2 parents 9c810f6 + c6462a0 commit 84bf375
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions itkwidgets/trait_types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import six
import collections
from collections.abc import Sequence
from datetime import datetime

import traitlets
Expand Down Expand Up @@ -350,7 +350,7 @@ def validate(self, obj, value):
# list
geometries = value
if not isinstance(geometries, dict) and not isinstance(
geometries, collections.Sequence) and geometries is not None:
geometries, Sequence) and geometries is not None:
geometries = [geometries]

try:
Expand Down Expand Up @@ -578,7 +578,7 @@ def validate(self, obj, value):
# list
point_sets = value
if not isinstance(point_sets, dict) and not isinstance(
point_sets, collections.Sequence) and point_sets is not None:
point_sets, Sequence) and point_sets is not None:
point_sets = [point_sets]

try:
Expand Down

0 comments on commit 84bf375

Please sign in to comment.