@staticmethod
PYL-R0201 66 super().set_mask(mask)
67 self.parameters["threshold"] = None
68
69 def get_info_text(self): 70 return "No info [Report this ass error]"
71
72 def get_segmentation_profile(self) -> ROIExtractionProfile:
The method doesn't use its bound instance. Decorate this method with @staticmethod
decorator, so that Python does not have to instantiate a bound method for every instance of this class thereby saving memory and computation. Read more about staticmethods here.