8000 Add dtype/copy args to internal testing class · matplotlib/matplotlib@125b480 · GitHub
[go: up one dir, main page]

Skip to content

Commit 125b480

Browse files
committed
Add dtype/copy args to internal testing class
1 parent 9618fc6 commit 125b480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_units.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ class Kernel:
282282
def __init__(self, array):
283283
self._array = np.asanyarray(array)
284284

285-
def __array__(self):
286-
return self._array
285+
def __array__(self, dtype=None, copy=None):
286+
return np.asarray(self._array, dtype=dtype, copy=copy)
287287

288288
@property
289289
def shape(self):

0 commit comments

Comments
 (0)
0