8000 Remove deprecated is_pyqt5 function. · matplotlib/matplotlib@ce8a067 · GitHub
[go: up one dir, main page]

Skip to content

Commit ce8a067

Browse files
committed
Remove deprecated is_pyqt5 function.
1 parent bfd553b commit ce8a067

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/api/next_api_changes/removals/19894-ES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@ Qt4-based backends
33
The qt4agg and qt4cairo backends have been removed. Qt4 has reached its
44
end-of-life in 2015 and there are no releases for recent versions of Python.
55
Please use one of the Qt5 or Qt6 backends.
6+
7+
``qt_compat.is_pyqt5``
8+
~~~~~~~~~~~~~~~~~~~~~~
9+
This function has been removed due to the release of PyQt6. The Qt version can
10+
be checked using ``QtCore.qVersion()``.

lib/matplotlib/backends/qt_compat.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import sys
1818

1919
import matplotlib as mpl
20-
from matplotlib import _api
2120

2221

2322
QT_API_PYQT5 = "PyQt5"
@@ -80,10 +79,6 @@ def _isdeleted(obj): return not shiboken2.isValid(obj)
8079
raise ValueError("Unexpected value for the 'backend.qt5' rcparam")
8180
_getSaveFileName = QtWidgets.QFileDialog.getSaveFileName
8281

83-
@_api.deprecated("3.3", alternative="QtCore.qVersion()")
84-
def is_pyqt5():
85-
return True
86-
8782

8883
if QT_API in [QT_API_PYQT5, QT_API_PYSIDE2]:
8984
_setup_pyqt5()

0 commit comments

Comments
 (0)
0