File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -79,14 +79,16 @@ def __iter__(self):
79
79
iter_values = iter (self ._values )
80
80
81
81
def it_outer ():
82
- for element in iter_values :
83
- yield element
82
+ yield from iter_values
84
83
85
84
return it_outer ()
86
85
87
86
def __len__ (self ):
88
87
return len (self ._values )
89
88
89
+ def __array__ (self , t = None ):
90
+ return self ._values
91
+
90
92
@property
91
93
def ndim (self ):
92
94
return self ._values .ndim
@@ -210,10 +212,13 @@ class DtypeList(list):
210
212
assert not inference .is_array_like (123 )
211
213
212
214
213
- @pytest .mark .parametrize ("eg" , (
214
- np .array (2 ),
215
- MockNumpyLikeArray (np .array (2 )),
216
- ))
215
+ @pytest .mark .parametrize (
216
+ "eg" ,
217
+ (
218
+ np .array (2 ),
219
+ MockNumpyLikeArray (np .array (2 )),
220
+ ),
221
+ )
217
222
def test_assert_almost_equal (eg ):
218
223
tm .assert_almost_equal (eg , eg )
219
224
You can’t perform that action at this time.
0 commit comments