<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi everyone!
</p>
    <p>I've developed some Qgis plugins, everything was fine until I updated Python to 3.10 version, some of these plugins have problems with the <i>pyqtSlot</i> with the function <i>layerChanged</i>, an example code:</p>
    <blockquote>
      <p><font face="monospace">self.myLayerComboBox.layerChanged.connect(self.myConnectMethod)

@pyqtSlot(QgsMapLayer)
def myConnectMethod(self, layer)
    ...</font></p>
    </blockquote>
    <p>The error is:</p>
    <blockquote>
      <p><font face="monospace">TypeError: decorated slot has no signature compatible with layerChanged(QgsMapLayer*)</font></p>
    </blockquote>
    <p>My question is: if that is a Qgis bug? or that pyqtSlot no longer necessary? or has the syntax changed for that decorator?</p>
    <p>That error don't happen with Python < 3.10. Using Qgis 3.22.2 on Archlinux.
<style type="text/css">p, li { white-space: pre-wrap; }</style></p>
    <p>Thanks!</p>
    <p>Xavier
</p>
  </body>
</html>