iterable -> list
# limitations under the License.
-from typing import Dict, Iterable, List, Union
+from typing import Dict, List, Union
from pymedphys._imports import pydicom # pylint: disable = unused-import
from typing_extensions import Literal
@@ -54,7 +54,7 @@ def require_patient_orientation(
not match the provided orientation.
"""
- if not isinstance(datasets, Iterable):
+ if not isinstance(datasets, list):
datasets = list(datasets)
required_image_orientation_patient = IMAGE_ORIENTATION_MAP[patient_orientation]
