summaryrefslogtreecommitdiff
path: root/lib/extensions/apply_palette.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-03-12 08:16:28 +0100
committerGitHub <noreply@github.com>2025-03-12 08:16:28 +0100
commit760c17b8156db5cbc0662d52d57902939e9e0147 (patch)
tree0a11bc197cdffaa59be23263b625ffec31d84bf0 /lib/extensions/apply_palette.py
parente3ac18d6433a2c79b185400e6c7f5380ff71eb1e (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.py4
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