Solved DeprecationWarning: an integer is required
-
When I try to combine two Qt.DropAction values, I get the following warning:
DeprecationWarning: an integer is required (got type PySide2.QtCore.Qt.DropAction). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. return Qt.CopyAction | Qt.MoveAction
What is the proper way to combine the two values?
Python 3.8.1
PySide2 5.14.1
MacOS Catalina -
Thanks! I found this: https://bugreports.qt.io/browse/PYSIDE-1226
It says that it is already fixed and will be coming out in the next release.
BTW, your bug report system link needs fixing: s/bugreport/bugreports/
-
Hi,
That's likely something introduced by Python 3.8. You should check the bug report system to see if there's already something related.
-
Thanks! I found this: https://bugreports.qt.io/browse/PYSIDE-1226
It says that it is already fixed and will be coming out in the next release.
BTW, your bug report system link needs fixing: s/bugreport/bugreports/
-
@notsofast indeed, I forgot that letter !
Thanks for sharing your findings !