Skip to content

Commit 56d367f

Browse files
committed
fix test_getitem_scalar test
1 parent 44e2d43 commit 56d367f

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

db_dtypes/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def na_value(self) -> pd.NA:
4040

4141
@property
4242
def type(self) -> type[str]:
43-
return str
43+
return dict
4444

4545
@property
4646
def _is_numeric(self) -> bool:

tests/compliance/json/test_json_compliance.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -392,13 +392,3 @@ def test_setitem_2d_values(self, data):
392392
@pytest.mark.parametrize("engine", ["c", "python"])
393393
def test_EA_types(self, engine, data, request):
394394
super().test_EA_types(engine, data, request)
395-
396-
def test_getitem_scalar(self, data):
397-
result = data[0]
398-
# While JSONDtype internally stores data as pyarrow strings
399-
# (equivalent to data.dtype.type), it is deliberately designed to return a
400-
# dictionary as the result.
401-
assert isinstance(result, dict)
402-
403-
result = pd.Series(data)[0]
404-
assert isinstance(result, dict)

0 commit comments

Comments
 (0)