Skip to content

Commit 20e5ebe

Browse files
committed
pass mypy type check
1 parent a7f8af2 commit 20e5ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/strings/accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ def split(
920920
)
921921
if is_re(pat):
922922
regex = True
923-
elif pat is not None and regex is None:
923+
elif isinstance(pat, str) and regex is None:
924924
# regex is None so link to old behavior #43563
925925
regex = len(pat) != 1
926926
result = self._data.array._str_split(pat, n, expand, regex)

0 commit comments

Comments
 (0)