Skip to content

Commit 563f1f1

Browse files
committed
STYLE: Fix formatting and docstring issues in str.contains
1 parent 838b1c5 commit 563f1f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/core/strings/accessor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,8 +1361,10 @@ def contains(
13611361

13621362
if regex:
13631363
try:
1364-
_compiled = pat if isinstance(pat, re.Pattern) else re.compile(
1365-
pat, flags=flags
1364+
_compiled = (
1365+
pat
1366+
if isinstance(pat, re.Pattern)
1367+
else re.compile(pat, flags=flags)
13661368
)
13671369
if _compiled.groups:
13681370
warnings.warn(

0 commit comments

Comments
 (0)