diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-03-12 08:16:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-12 08:16:28 +0100 |
| commit | 760c17b8156db5cbc0662d52d57902939e9e0147 (patch) | |
| tree | 0a11bc197cdffaa59be23263b625ffec31d84bf0 /lib/extensions/apply_palette.py | |
| parent | e3ac18d6433a2c79b185400e6c7f5380ff71eb1e (diff) | |
annotations (#3569)
* begin to add annotations to some extensions
* break_apart: use path operations
* do not follow pyembroidery imports
Diffstat (limited to 'lib/extensions/apply_palette.py')
| -rw-r--r-- | lib/extensions/apply_palette.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
