Skip to content

Commit

Permalink
trying
Browse files Browse the repository at this point in the history
  • Loading branch information
chelsea-lin committed Jan 17, 2025
1 parent fdad61e commit b287870
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions db_dtypes/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(self, values) -> None:
else:
raise NotImplementedError(f"Unsupported pandas version: {pd.__version__}")

def __arrow_array__(self):
def __arrow_array__(self, type=None):
"""Convert to an arrow array. This is required for pyarrow extension."""
return self.pa_data

Expand Down Expand Up @@ -279,9 +279,6 @@ def __arrow_ext_serialize__(self) -> bytes:
def __arrow_ext_deserialize__(cls, storage_type, serialized) -> JSONArrowType:
return JSONArrowType()

def __hash__(self) -> int:
return hash(str(self))

def to_pandas_dtype(self):
return JSONDtype()

Expand Down

0 comments on commit b287870

Please sign in to comment.