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

Skip to content

Commit 40c6756

Browse files
authored
Maintain __name__ for PyQt
1 parent 498b5b1 commit 40c6756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ def __init__(self, canvas, parent=None, coordinates=True):
644644
else:
645645
slot = getattr(self, callback)
646646
# https://bugreports.qt.io/browse/PYSIDE-2512
647-
slot = functools.partial(slot)
647+
slot = functools.wraps(slot)(functools.partial(slot))
648648
slot = QtCore.Slot()(slot)
649649

650650
a = self.addAction(self._icon(image_file + '.png'),

0 commit comments

Comments
 (0)