Skip to content

Commit fda5619

Browse files
committed
Fixed ruff format
1 parent 563f1f1 commit fda5619

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/strings/accessor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,9 +1362,7 @@ def contains(
13621362
if regex:
13631363
try:
13641364
_compiled = (
1365-
pat
1366-
if isinstance(pat, re.Pattern)
1367-
else re.compile(pat, flags=flags)
1365+
pat if isinstance(pat, re.Pattern) else re.compile(pat, flags=flags)
13681366
)
13691367
if _compiled.groups:
13701368
warnings.warn(

0 commit comments

Comments
 (0)