Skip to content

Commit

Permalink
Merge pull request #49 from novitk/master
Browse files Browse the repository at this point in the history
updated collections imports to comply with 3.10
  • Loading branch information
tillahoffmann committed Aug 8, 2022
2 parents 8965624 + 9301fce commit 24ab9f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pythonflow/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# limitations under the License.

import builtins
import collections
import collections.abc
import contextlib
import functools
import importlib
Expand Down Expand Up @@ -107,7 +107,7 @@ def normalize_context(self, context, **kwargs):
"""
if context is None:
context = {}
elif not isinstance(context, collections.Mapping):
elif not isinstance(context, collections.abc.Mapping):
raise ValueError("`context` must be a mapping.")

operations = list(context)
Expand Down Expand Up @@ -161,7 +161,7 @@ def apply(self, fetches, context=None, *, callback=None, **kwargs):
if isinstance(fetches, (str, Operation)):
fetches = [fetches]
single = True
elif isinstance(fetches, collections.Sequence):
elif isinstance(fetches, collections.abc.Sequence):
single = False
else:
raise ValueError("`fetches` must be an `Operation` instance, operation name, or a "
Expand Down

0 comments on commit 24ab9f7

Please sign in to comment.