Skip to content

Commit

Permalink
fix pre-commit error
Browse files Browse the repository at this point in the history
  • Loading branch information
natmokval committed Nov 29, 2023
1 parent 4114e60 commit a4f7784
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pandas/core/arrays/period.py
Original file line number Diff line number Diff line change
Expand Up @@ -1179,9 +1179,7 @@ def dt64arr_to_periodarr(
except (AttributeError, TypeError):
# AttributeError: _period_dtype_code might not exist
# TypeError: _period_dtype_code might intentionally raise
raise TypeError(
f"{(type(freq).__name__)} is not supported as period frequency"
)
raise TypeError(f"{(type(freq).__name__)} is not supported as period frequency")
return c_dt64arr_to_periodarr(data.view("i8"), base, tz, reso=reso), freq


Expand Down

0 comments on commit a4f7784

Please sign in to comment.