From 760c17b8156db5cbc0662d52d57902939e9e0147 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Wed, 12 Mar 2025 08:16:28 +0100 Subject: annotations (#3569) * begin to add annotations to some extensions * break_apart: use path operations * do not follow pyembroidery imports --- lib/extensions/apply_palette.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/extensions/apply_palette.py') diff --git a/lib/extensions/apply_palette.py b/lib/extensions/apply_palette.py index 373824b6..f50a9cf5 100644 --- a/lib/extensions/apply_palette.py +++ b/lib/extensions/apply_palette.py @@ -16,7 +16,7 @@ class ApplyPalette(InkstitchExtension): Applies colors of a color palette to elements ''' - def effect(self): + def effect(self) -> None: # Remove selection, we want all the elements in the document self.svg.selection.clear() @@ -32,7 +32,7 @@ class ApplyPalette(InkstitchExtension): if palette_choice.palette: self.apply_palette(palette_choice.palette) - def apply_palette(self, palette_name): + def apply_palette(self, palette_name: str) -> None: palette = ThreadCatalog().get_palette_by_name(palette_name) # Iterate through the color blocks to apply colors -- cgit v1.2.3