Skip to content

Commit 99b32e2

Browse files
authored
STY: Enforce Ruff rule B905 for pandas/_config (#62591)
1 parent b20d6ab commit 99b32e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_config/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def set_option(*args) -> None:
271271
if not nargs or nargs % 2 != 0:
272272
raise ValueError("Must provide an even number of non-keyword arguments")
273273

274-
for k, v in zip(args[::2], args[1::2]):
274+
for k, v in zip(args[::2], args[1::2], strict=True):
275275
key = _get_single_key(k)
276276

277277
opt = _get_registered_option(key)
@@ -502,7 +502,7 @@ def option_context(*args) -> Generator[None]:
502502
"option_context(pat, val, pat, val...)."
503503
)
504504

505-
ops = tuple(zip(args[::2], args[1::2]))
505+
ops = tuple(zip(args[::2], args[1::2], strict=True))
506506
try:
507507
undo = tuple((pat, get_option(pat)) for pat, val in ops)
508508
for pat, val in ops:

0 commit comments

Comments
 (0)