File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -554,6 +554,9 @@ def isinteractive() -> bool:
554
554
return matplotlib .is_interactive ()
555
555
556
556
557
+ # Note: The return type of ioff being AbstractContextManager instead of ExitStack is deliberate.
558
+ # See https://github.com/matplotlib/matplotlib/issues/27659
559
+ # and https://github.com/matplotlib/matplotlib/pull/27667 for more info.
557
560
def ioff () -> AbstractContextManager :
558
561
"""
559
562
Disable interactive mode.
@@ -594,6 +597,9 @@ def ioff() -> AbstractContextManager:
594
597
return stack
595
598
596
599
600
+ # Note: The return type of ion being AbstractContextManager instead of ExitStack is deliberate.
601
+ # See https://github.com/matplotlib/matplotlib/issues/27659
602
+ # and https://github.com/matplotlib/matplotlib/pull/27667 for more info.
597
603
def ion () -> AbstractContextManager :
598
604
"""
599
605
Enable interactive mode.
You can’t perform that action at this time.
0 commit comments