From e9bcdc910a2101c0da2fa379da36e1d1be2fe3f2 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Thu, 21 Aug 2025 16:10:48 -0400 Subject: fix type errors (#3928) * fix type checking error in overriding path propery * fix type hints in sew stack * enable type checking for tartan * ignore type warnings for dynamic wx module attributes * fix tartan type errors * fix circular import * add type-check and test targets * use Optional instead --- lib/sew_stack/stitch_layers/mixins/path.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/sew_stack/stitch_layers/mixins/path.py') diff --git a/lib/sew_stack/stitch_layers/mixins/path.py b/lib/sew_stack/stitch_layers/mixins/path.py index 88e5419d..9739f381 100644 --- a/lib/sew_stack/stitch_layers/mixins/path.py +++ b/lib/sew_stack/stitch_layers/mixins/path.py @@ -1,6 +1,6 @@ +from .protocol import LayerProtocol from ..stitch_layer_editor import Category, Property from ....i18n import _ -from ....utils import DotDict, Point class PathPropertiesMixin: @@ -13,10 +13,7 @@ class PathPropertiesMixin: class PathMixin: - config: DotDict - paths: 'list[list[Point]]' - - def get_paths(self): + def get_paths(self: LayerProtocol): paths = self.paths if self.config.reverse_path: -- cgit v1.2.3