File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,10 @@ def __getitem__(self, item):
207
207
208
208
return type (self )(self ._pa_array [item ])
209
209
210
+ def __setitem__ (self , key , value ) -> None :
211
+ msg = "ListArray does not support item assignment via setitem"
212
+ raise TypeError (msg )
213
+
210
214
@classmethod
211
215
def _empty (cls , shape : Shape , dtype : ExtensionDtype ):
212
216
"""
Original file line number Diff line number Diff line change 32
32
from pandas .tests .extension .base .printing import BasePrintingTests
33
33
from pandas .tests .extension .base .reduce import BaseReduceTests
34
34
from pandas .tests .extension .base .reshaping import BaseReshapingTests
35
+ from pandas .tests .extension .base .setitem import BaseSetitemTests
35
36
36
37
# TODO(wayd): This is copied from string tests - is it required here?
37
38
# @pytest.fixture(params=[True, False])
@@ -86,7 +87,7 @@ class TestListArray(
86
87
BasePrintingTests ,
87
88
BaseReduceTests ,
88
89
BaseReshapingTests ,
89
- # BaseSetitemTests,
90
+ BaseSetitemTests ,
90
91
Dim2CompatTests ,
91
92
):
92
93
# TODO(wayd): The tests here are copied from test_arrow.py
You can’t perform that action at this time.
0 commit comments