Skip to content

Commit

Permalink
Ruff format check
Browse files Browse the repository at this point in the history
  • Loading branch information
eliabrio committed Sep 5, 2024
1 parent 76aef70 commit b159e3f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions awswrangler/_data_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,15 +331,15 @@ def athena2pyarrow(dtype: str, df_type: str = None) -> pa.DataType: # noqa: PLR
if dtype == "timestamp":
if df_type:
match df_type:
case "datetime64[s]":
case "datetime64[s]":
return pa.timestamp(unit="s")
case "datetime64[ms]":
case "datetime64[ms]":
return pa.timestamp(unit="ms")
case "datetime64[us]":
case "datetime64[us]":
return pa.timestamp(unit="us")
case "datetime64[ns]":
case "datetime64[ns]":
return pa.timestamp(unit="ns")
case _:
case _:
return pa.timestamp(unit="ns")
if dtype == "date":
return pa.date32()
Expand Down

0 comments on commit b159e3f

Please sign in to comment.