Skip to content

Commit 9f3b34f

Browse files
committed
Fixed ruff format
1 parent 9e085fa commit 9f3b34f

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
@@ -1350,9 +1350,7 @@ def contains(
13501350
if regex:
13511351
try:
13521352
_compiled = (
1353-
pat
1354-
if isinstance(pat, re.Pattern)
1355-
else re.compile(pat, flags=flags)
1353+
pat if isinstance(pat, re.Pattern) else re.compile(pat, flags=flags)
13561354
)
13571355
if _compiled.groups:
13581356
warnings.warn(

0 commit comments

Comments
 (0)