diff --git a/src/arclet/alconna/sistana/fragment.py b/src/arclet/alconna/sistana/fragment.py index 9a01cc04..9e05c582 100644 --- a/src/arclet/alconna/sistana/fragment.py +++ b/src/arclet/alconna/sistana/fragment.py @@ -50,11 +50,14 @@ def apply_nepattern(self, pat: BasePattern | None = None, capture_mode: bool = F if self.type is None: return - from nepattern import type_parser, MatchMode + + from nepattern import type_parser pat = type_parser(self.type.value) assert pat is not None + from nepattern import MatchMode + if capture_mode: if pat.mode in (MatchMode.REGEX_MATCH, MatchMode.REGEX_CONVERT): self.capture = RegexCapture(pat.regex_pattern)