Skip to content

Commit

Permalink
sistana: fix pointer repr
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyElaina committed Sep 24, 2024
1 parent f30eb6b commit ecd3b53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/arclet/alconna/sistana/model/pointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}]")
Expand Down

0 comments on commit ecd3b53

Please sign in to comment.