Skip to content

Commit 91d6be3

Browse files
committed
lint
1 parent ee2d377 commit 91d6be3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/core/strings/accessor.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2146,10 +2146,7 @@ def decode(
21462146
2 ()
21472147
dtype: object
21482148
"""
2149-
if (
2150-
dtype is not None
2151-
and not is_string_dtype(dtype)
2152-
):
2149+
if dtype is not None and not is_string_dtype(dtype):
21532150
raise ValueError(f"dtype must be string or object, got {dtype=}")
21542151
if dtype is None and get_option("future.infer_string"):
21552152
dtype = "str"

0 commit comments

Comments
 (0)