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 @@ -556,6 +556,9 @@ def isinteractive() -> bool:
556556 return matplotlib .is_interactive ()
557557
558558
559+ # Note: The return type of ioff being AbstractContextManager instead of ExitStack is deliberate.
560+ # See https://github.com/matplotlib/matplotlib/issues/27659
561+ # and https://github.com/matplotlib/matplotlib/pull/27667 for more info.
559562def ioff () -> AbstractContextManager :
560563 """
561564 Disable interactive mode.
@@ -596,6 +599,9 @@ def ioff() -> AbstractContextManager:
596599 return stack
597600
598601
602+ # Note: The return type of ion being AbstractContextManager instead of ExitStack is deliberate.
603+ # See https://github.com/matplotlib/matplotlib/issues/27659
604+ # and https://github.com/matplotlib/matplotlib/pull/27667 for more info.
599605def ion () -> AbstractContextManager :
600606 """
601607 Enable interactive mode.
You can’t perform that action at this time.
0 commit comments