Pyside2, QAbstractItemModel subclassed setData and changedData.emit()

I'm writing pyside2 code, using the QAbstractItemModel class. I've subclassed setData. The pyside2 doc says to explicitly emit the changedData signal if this is done. QAbstractItemModel — Qt for Python <https://doc.qt.io/qtforpython-5/PySide2/QtCore/QAbstractItemModel.html#subcl...> pylint does not see the emit() method and the error needs to be suppressed: self.dataChanged.emit(index, index) # pylint: disable=E1101 { "resource": "xxx/src/main/python/models/mdl_abstbl_banktran.py", "owner": "python", "code": "no-member", "severity": 8, "message": "Method 'dataChanged' has no 'emit' member", "source": "pylint", "startLineNumber": 451, "startColumn": 17, "endLineNumber": 451, "endColumn": 17 } In a message with pyside2 support, they think the emit() member should be findable, being written here https://code.qt.io/cgit/pyside/pyside-setup.git/tree/sources/pyside6/libpysi... Is this an artifact of the python/c++ nature of the pyside implementation? Thanks, Ed
participants (1)
-
Ed Lipson