tidy(nodes): abstractmethod is noop

This commit is contained in:
psychedelicious 2024-04-01 19:30:55 +11:00
parent e55ab5b3a1
commit b061db414f

View File

@ -39,8 +39,8 @@ class InfillImageProcessorInvocation(BaseInvocation, WithMetadata, WithBoard):
@abstractmethod @abstractmethod
def infill(self, image: Image.Image) -> Image.Image: def infill(self, image: Image.Image) -> Image.Image:
"""Abstract to perform various infilling techniques""" """Infill the image with the specified method"""
return image pass
def load_image(self, context: InvocationContext) -> tuple[Image.Image, bool]: def load_image(self, context: InvocationContext) -> tuple[Image.Image, bool]:
"""Process the image to have an alpha channel before being infilled""" """Process the image to have an alpha channel before being infilled"""
@ -110,7 +110,6 @@ class InfillPatchMatchInvocation(InfillImageProcessorInvocation):
resample_mode: PIL_RESAMPLING_MODES = InputField(default="bicubic", description="The resampling mode") resample_mode: PIL_RESAMPLING_MODES = InputField(default="bicubic", description="The resampling mode")
def infill(self, image: Image.Image): def infill(self, image: Image.Image):
resample_mode = PIL_RESAMPLING_MAP[self.resample_mode] resample_mode = PIL_RESAMPLING_MAP[self.resample_mode]
width = int(image.width / self.downscale) width = int(image.width / self.downscale)