We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b20d6ab commit 99b32e2Copy full SHA for 99b32e2
pandas/_config/config.py
@@ -271,7 +271,7 @@ def set_option(*args) -> None:
271
if not nargs or nargs % 2 != 0:
272
raise ValueError("Must provide an even number of non-keyword arguments")
273
274
- for k, v in zip(args[::2], args[1::2]):
+ for k, v in zip(args[::2], args[1::2], strict=True):
275
key = _get_single_key(k)
276
277
opt = _get_registered_option(key)
@@ -502,7 +502,7 @@ def option_context(*args) -> Generator[None]:
502
"option_context(pat, val, pat, val...)."
503
)
504
505
- ops = tuple(zip(args[::2], args[1::2]))
+ ops = tuple(zip(args[::2], args[1::2], strict=True))
506
try:
507
undo = tuple((pat, get_option(pat)) for pat, val in ops)
508
for pat, val in ops:
0 commit comments