def __init__(self, map_canvas: QgsMapCanvas, geometry_type): QgsRubberBand.__init__(self, map_canvas, geometry_type) self.points = []