Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach committed Feb 17, 2025
1 parent ee2d377 commit 91d6be3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pandas/core/strings/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2146,10 +2146,7 @@ def decode(
2 ()
dtype: object
"""
if (
dtype is not None
and not is_string_dtype(dtype)
):
if dtype is not None and not is_string_dtype(dtype):
raise ValueError(f"dtype must be string or object, got {dtype=}")
if dtype is None and get_option("future.infer_string"):
dtype = "str"
Expand Down

0 comments on commit 91d6be3

Please sign in to comment.