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):
7979 iter_values = iter (self ._values )
8080
8181 def it_outer ():
82- for element in iter_values :
83- yield element
82+ yield from iter_values
8483
8584 return it_outer ()
8685
8786 def __len__ (self ):
8887 return len (self ._values )
8988
89+ def __array__ (self , t = None ):
90+ return self ._values
91+
9092 @property
9193 def ndim (self ):
9294 return self ._values .ndim
@@ -210,10 +212,13 @@ class DtypeList(list):
210212 assert not inference .is_array_like (123 )
211213
212214
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+ )
217222def test_assert_almost_equal (eg ):
218223 tm .assert_almost_equal (eg , eg )
219224
You can’t perform that action at this time.
0 commit comments