<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;" bgcolor="#ffffff" text="#2e3436" link="#737373" vlink="#2e3436"><div>Hi Björn,</div><div><br></div><div>On Sat, 2023-03-04 at 17:59 +0100, Björn Künsting wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><pre>Hi,</pre><pre><br></pre><pre>I am using PyQt6 on Linux and get the following error when decorating a</pre><pre>function to receive QAbstractItemModel.dataChanged signals. </pre><pre><br></pre><pre>TypeError: decorated slot has no signature compatible with</pre><pre>dataChanged(QModelIndex,QModelIndex,QList<int>)</pre><pre><br></pre><pre>The decorated function (inside a class):</pre><pre><br></pre><pre>@pyqtSlot("QModelIndex", "QModelIndex", "QList<int>")</pre><pre>def on_changed(self, tl: QModelIndex, br: QModelIndex, roles:</pre><pre>List[int])</pre></blockquote><div><br></div><div>Shouldn't the type-hint the roles parameter be QList[int]? You have just List[int].</div><div><br></div><div>I don't really understand what type-hints do, so I don't know if this will work.</div><div><br></div><div>Regards,</div><div>Tony.</div></body></html>