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 @@ -556,7 +556,7 @@ def isinteractive() -> bool:
556
556
return matplotlib .is_interactive ()
557
557
558
558
559
- def ioff () -> ExitStack :
559
+ def ioff () -> AbstractContextManager :
560
560
"""
561
561
Disable interactive mode.
562
562
@@ -586,7 +586,7 @@ def ioff() -> ExitStack:
586
586
# ...
587
587
588
588
To enable optional usage as a context manager, this function returns a
589
- `~contextlib.ExitStack` object, which is not intended to be stored or
589
+ context manager object, which is not intended to be stored or
590
590
accessed by the user.
591
591
"""
592
592
stack = ExitStack ()
@@ -596,7 +596,7 @@ def ioff() -> ExitStack:
596
596
return stack
597
597
598
598
599
- def ion () -> ExitStack :
599
+ def ion () -> AbstractContextManager :
600
600
"""
601
601
Enable interactive mode.
602
602
@@ -626,7 +626,7 @@ def ion() -> ExitStack:
626
626
# ...
627
627
628
628
To enable optional usage as a context manager, this function returns a
629
- `~contextlib.ExitStack` object, which is not intended to be stored or
629
+ context manager object, which is not intended to be stored or
630
630
accessed by the user.
631
631
"""
632
632
stack = ExitStack ()
You can’t perform that action at this time.
0 commit comments