From c51787b7e2829ba7ccd2ea0614a456e253ae3f07 Mon Sep 17 00:00:00 2001 From: Brett Naul Date: Tue, 12 Jul 2022 08:26:43 -0400 Subject: [PATCH] Remove deprecated collections.Iterable import --- src/pylogit/choice_tools.py | 2 +- tests/test_bootstrap_abc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pylogit/choice_tools.py b/src/pylogit/choice_tools.py index c9653d7..cf967b2 100644 --- a/src/pylogit/choice_tools.py +++ b/src/pylogit/choice_tools.py @@ -12,7 +12,7 @@ import warnings from collections import OrderedDict -from collections import Iterable +from collections.abc import Iterable from numbers import Number import numpy as np diff --git a/tests/test_bootstrap_abc.py b/tests/test_bootstrap_abc.py index 21ac35f..85a1884 100644 --- a/tests/test_bootstrap_abc.py +++ b/tests/test_bootstrap_abc.py @@ -2,7 +2,7 @@ Tests for the bootstrap_abc.py file. """ import unittest -from collections import Iterable +from collections.abc import Iterable import numpy as np import numpy.testing as npt