File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -554,7 +554,7 @@ def isinteractive() -> bool:
554
554
return matplotlib .is_interactive ()
555
555
556
556
557
- def ioff () -> ExitStack :
557
+ def ioff () -> AbstractContextManager :
558
558
"""
559
559
Disable interactive mode.
560
560
@@ -584,7 +584,7 @@ def ioff() -> ExitStack:
584
584
# ...
585
585
586
586
To enable optional usage as a context manager, this function returns a
587
- `~contextlib.ExitStack` object, which is not intended to be stored or
587
+ context manager object, which is not intended to be stored or
588
588
accessed by the user.
589
589
"""
590
590
stack = ExitStack ()
@@ -594,7 +594,7 @@ def ioff() -> ExitStack:
594
594
return stack
595
595
596
596
597
- def ion () -> ExitStack :
597
+ def ion () -> AbstractContextManager :
598
598
"""
599
599
Enable interactive mode.
600
600
@@ -624,7 +624,7 @@ def ion() -> ExitStack:
624
624
# ...
625
625
626
626
To enable optional usage as a context manager, this function returns a
627
- `~contextlib.ExitStack` object, which is not intended to be stored or
627
+ context manager object, which is not intended to be stored or
628
628
accessed by the user.
629
629
"""
630
630
stack = ExitStack ()
You can’t perform that action at this time.
0 commit comments