1840 "builtin_function_or_method" in filterList) |
1840 "builtin_function_or_method" in filterList) |
1841 ): |
1841 ): |
1842 continue |
1842 continue |
1843 else: |
1843 else: |
1844 isQt = False |
1844 isQt = False |
1845 # valtypestr, e.g. class 'PyQt5.QtCore.QPoint' |
1845 # valtypestr, e.g. class 'PyQt6.QtCore.QPoint' |
1846 valtypestr = str(type(value))[1:-1] |
1846 valtypestr = str(type(value))[1:-1] |
1847 _, valtype = valtypestr.split(' ', 1) |
1847 _, valtype = valtypestr.split(' ', 1) |
1848 # valtype, e.g. PyQt5.QtCore.QPoint |
1848 # valtype, e.g. PyQt6.QtCore.QPoint |
1849 valtype = valtype[1:-1] |
1849 valtype = valtype[1:-1] |
1850 # Strip 'instance' to be equal with Python 3 |
1850 # Strip 'instance' to be equal with Python 3 |
1851 if valtype == "instancemethod": |
1851 if valtype == "instancemethod": |
1852 valtype = "method" |
1852 valtype = "method" |
1853 elif valtype in ("type", "classobj"): |
1853 elif valtype in ("type", "classobj"): |