diff --git a/src/arclet/alconna/sistana/model/pointer.py b/src/arclet/alconna/sistana/model/pointer.py index 7cf6893a..292f8137 100644 --- a/src/arclet/alconna/sistana/model/pointer.py +++ b/src/arclet/alconna/sistana/model/pointer.py @@ -46,11 +46,11 @@ def last(self): def __repr__(self): content = [] for ty, val in self.data: - if ty == "header": + if ty == PointerRole.HEADER: content.append("[::]") - elif ty == "prefix": + elif ty == PointerRole.PREFIX: content.append("[^]") - elif ty == "subcommand": + elif ty == PointerRole.SUBCOMMAND: content.append(val) else: content.append(f"#[{val}]")