From 9404a4384be1a323a9fc7830734ab05b99bd062f Mon Sep 17 00:00:00 2001 From: Nathan Hess <63890205+nathan-hess@users.noreply.github.com> Date: Sun, 16 Mar 2025 22:58:11 -0400 Subject: [PATCH] Make array type more general --- pyxx/arrays/functions/equality.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyxx/arrays/functions/equality.py b/pyxx/arrays/functions/equality.py index a60d3e0..42de25d 100644 --- a/pyxx/arrays/functions/equality.py +++ b/pyxx/arrays/functions/equality.py @@ -3,7 +3,7 @@ from __future__ import annotations from numbers import Number -from typing import List, Tuple, Union +from typing import Iterable, Union import numpy as np @@ -12,8 +12,7 @@ # Type alias: type for each `item` argument in `is_array_equal()` __element_types = Union[Number, np.ndarray, str] -Array_or_Number_or_String = Union[List[__element_types], - Tuple[__element_types], +Array_or_Number_or_String = Union[Iterable[__element_types], __element_types]