See bug at https://bz.apache.org/ooo/show_bug.cgi?id=124953 . The task is to port the changes to PyUNO and the Unit test to our code base.
Shubham Goyal committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/d4c620ba7e9abccd8a82e2c64bd0d8cdf9538380%5E%21 tdf#124011 Add __ne__ method to UNO types It will be available in 6.3.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.