summaryrefslogtreecommitdiff
path: root/lib/extensions/element_info.py
diff options
context:
space:
mode:
authorcapellancitizen <thecapellancitizen@gmail.com>2025-03-09 21:21:48 -0400
committerGitHub <noreply@github.com>2025-03-09 21:21:48 -0400
commit99509df8d8abf1e7b701a4a09cf170a362f6d878 (patch)
treea461549502fa9f37dc287789b6c7db81dfcd5368 /lib/extensions/element_info.py
parent0d2fc24f25f87562f0755b53dad6204efad1330d (diff)
Mypy type correctness (#3199)
Diffstat (limited to 'lib/extensions/element_info.py')
-rw-r--r--lib/extensions/element_info.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/extensions/element_info.py b/lib/extensions/element_info.py
index b84232b7..06acbb16 100644
--- a/lib/extensions/element_info.py
+++ b/lib/extensions/element_info.py
@@ -48,7 +48,7 @@ class ElementInfo(InkstitchExtension):
)
self.list_items.append(ListItem(
- name=f"{ element.node.label } ({ element.node.get_id() })",
+ name=f"{element.node.label} ({element.node.get_id()})",
value=stitch_groups[0].color,
headline=True
))
@@ -116,7 +116,7 @@ class ElementInfo(InkstitchExtension):
stitches_per_group = ""
if len(stitch_groups) > 1:
- stitches_per_group = f" ({', '.join([str(len(group.stitches)) for group in stitch_groups]) })"
+ stitches_per_group = f" ({', '.join([str(len(group.stitches)) for group in stitch_groups])})"
self.list_items.append(ListItem(
name=_("Stitches"),
@@ -200,7 +200,7 @@ class ElementInfo(InkstitchExtension):
class ListItem:
- def __init__(self, name="", value="", headline=False, warning=False):
+ def __init__(self, name="", value="", headline=False, warning=False) -> None:
self.name: str = name
self.value: str = value
self.headline: bool = headline