Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c718eae

Browse files
committed
Clarifying comment
1 parent bc31177 commit c718eae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/_pylab_helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def destroy(cls, num):
5353
two managers share the same number.
5454
"""
5555
if all(hasattr(num, attr) for attr in ["num", "destroy"]):
56+
# num is a manager-like instance (not necessarily a
57+
# FigureManagerBase subclass)
5658
manager = num
5759
if cls.figs.get(manager.num) is manager:
5860
cls.figs.pop(manager.num)

0 commit comments

Comments
 (0)