Skip to content

Commit 9e085fa

Browse files
committed
STYLE: Fix formatting and docstring issues in str.contains
1 parent 2fbf085 commit 9e085fa

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
@@ -1349,8 +1349,10 @@ def contains(
13491349

13501350
if regex:
13511351
try:
1352-
_compiled = pat if isinstance(pat, re.Pattern) else re.compile(
1353-
pat, flags=flags
1352+
_compiled = (
1353+
pat
1354+
if isinstance(pat, re.Pattern)
1355+
else re.compile(pat, flags=flags)
13541356
)
13551357
if _compiled.groups:
13561358
warnings.warn(

0 commit comments

Comments
 (0)