Skip to content

Commit 4a76254

Browse files
committed
Typing
1 parent 41f475b commit 4a76254

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
@@ -503,14 +503,14 @@ def option_context(*args) -> Generator[None]:
503503
)
504504

505505
ops = tuple(zip(args[::2], args[1::2], strict=True))
506-
undo = ()
506+
undo: tuple[tuple[Any, Any], ...] = ()
507507
try:
508508
undo = tuple((pat, get_option(pat)) for pat, val in ops)
509509
for pat, val in ops:
510510
set_option(pat, val)
511511
yield
512512
finally:
513-
for pat, val in undo:
513+
for pat, val in undo: # type: ignore[misc]
514514
set_option(pat, val)
515515

516516

0 commit comments

Comments
 (0)