Skip to content

Commit

Permalink
add metadata and allow_losing_tz
Browse files Browse the repository at this point in the history
  • Loading branch information
mae5357 committed May 13, 2024
1 parent d3f6e82 commit 651092d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pydantic_to_pyarrow/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ def _get_dict_type(
) -> pa.DataType:
key_type, value_type = get_args(field_type)
return pa.map_(
_get_pyarrow_type(key_type, [], allow_losing_tz=False),
_get_pyarrow_type(value_type, [], allow_losing_tz=False),
_get_pyarrow_type(key_type, metadata, allow_losing_tz=allow_losing_tz),
_get_pyarrow_type(value_type, metadata, allow_losing_tz=allow_losing_tz),
)


Expand Down

0 comments on commit 651092d

Please sign in to comment.