<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>hi!!! how it is goin'?</div><div> <!--StartFragment--><span style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: arial, helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">I try to merge vector layers using pyQgis. </span><!--EndFragment--><div style="clear: both;" data-mce-style="clear: both;"><br data-mce-bogus="1"></div></div><div>import processing as pr</div><div>layer=QgsProject.instance().mapLayers()</div><div><br></div><div><div>lay=[ly for ly in layer.values()]</div><div>pr.run("qgis:mergevectorlayers",lay,"output.shp")</div><div><strong>Traceback (most recent call last):</strong></div><div><strong>  File "C:\PROGRA~1\QGIS3~1.4\apps\Python37\lib\code.py", line 90, in runcode</strong></div><div><strong>    exec(code, self.locals)</strong></div><div><strong>  File "<input>", line 1, in <module></strong></div><div><strong>  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python/plugins\processing\tools\general.py", line 105, in run</strong></div><div><strong>    return Processing.runAlgorithm(algOrName, parameters, onFinish, feedback, context)</strong></div><div><strong>  File "C:/PROGRA~1/QGIS3~1.4/apps/qgis-ltr/./python/plugins\processing\core\Processing.py", line 135, in runAlgorithm</strong></div><div><strong>    ok, msg = alg.checkParameterValues(parameters, context)</strong></div><div><strong>TypeError: QgsProcessingAlgorithm.checkParameterValues(): argument 1 has unexpected type 'list'</strong></div></div></div></body></html>