Skip to content

Commit 9100275

Browse files
committed
convert the array_type property to a static method
This will allow choosing the return type depending on the operation.
1 parent c427286 commit 9100275

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

xarray_array_testing/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ class DuckArrayTestMixin(ABC):
1212
def xp() -> ModuleType:
1313
pass
1414

15-
@property
16-
@abc.abstractmethod
17-
def array_type(self) -> type[duckarray]:
15+
@staticmethod
16+
def array_type(op: str) -> type[duckarray]:
1817
pass
1918

2019
@staticmethod

0 commit comments

Comments
 (0)