<div dir="ltr">Hello,<div><br></div><div>I develop a processing algorithm for the toolbox. One of my parameters a list of vector layers of type line, so in my initAlgorithm function I have this statement:</div><br>        self.addParameter(<br>            QgsProcessingParameterMultipleLayers(<br>                self.INPUT_LINES,<br>                <a href="http://self.tr">self.tr</a>("Lines"),<br>                QgsProcessing.TypeVectorLine,<br>                optional=False<br>            )<br>        )<br><div><br></div><div>However, even if the optional parameter is set to False, it seems the user can still set an empty list: so not setting anything actually. So for me, this optional parameter doesn't work in this case.</div><div><br></div><div>Am I missing something here or is it a bug ? In this last case, I can report it on github. I'm using QGIS on Windows <span style="white-space:pre-wrap">3.10.2-A Coruña</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">Thanks,</span></div><div><span style="white-space:pre-wrap"><br></span></div><div><span style="white-space:pre-wrap">Jean-Charles</span></div><div><br></div></div>