Skip to content

Commit e06a9f4

Browse files
committed
Revert bigframes/dtypes.py and mypy.ini to main branch version
1 parent d97cfac commit e06a9f4

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

bigframes/dtypes.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -972,21 +972,6 @@ def contains_db_dtypes_json_dtype(dtype):
972972
return contains_db_dtypes_json_arrow_type(dtype.pyarrow_dtype)
973973

974974

975-
def _replace_json_arrow_with_string(pa_type: pa.DataType) -> pa.DataType:
976-
"""Recursively replace JSONArrowType with string type."""
977-
if isinstance(pa_type, db_dtypes.JSONArrowType):
978-
return pa.string()
979-
if isinstance(pa_type, pa.ListType):
980-
return pa.list_(_replace_json_arrow_with_string(pa_type.value_type))
981-
if isinstance(pa_type, pa.StructType):
982-
new_fields = [
983-
field.with_type(_replace_json_arrow_with_string(field.type))
984-
for field in pa_type
985-
]
986-
return pa.struct(new_fields)
987-
return pa_type
988-
989-
990975
def warn_on_db_dtypes_json_dtype(dtypes):
991976
"""Warn that the JSON dtype is changing.
992977

mypy.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,3 @@ ignore_missing_imports = True
4444

4545
[mypy-anywidget]
4646
ignore_missing_imports = True
47-
48-
[mypy-db_dtypes]
49-
ignore_missing_imports = True

0 commit comments

Comments
 (0)