Re: [QGIS-Developer] QgsProcessingAlgorithm createInstance

2019-02-20 Thread Nyall Dawson
On Thu, 21 Feb 2019 at 07:30, Caio Hamamura wrote: > > QgsProcessingAlgorithm needs to implement this useless method > (createInstance) in my view of point. > > Why do we even need the createInstance method? Couldn’t it be generic: > > def createInstance(self): > return self.__class__() QgsP

[QGIS-Developer] QgsProcessingAlgorithm createInstance

2019-02-20 Thread Caio Hamamura
QgsProcessingAlgorithm needs to implement this useless method (createInstance) in my view of point. Why do we even need the createInstance method? Couldn’t it be generic: def createInstance(self): return self.__class__() Greetings, Caio Hamamura __