Skip to content

Commit

Permalink
sistana: feat: Pointer.{last_role, last_value}
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyElaina committed Sep 25, 2024
1 parent a76ec63 commit 7adbc81
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/arclet/alconna/sistana/model/pointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ def parent(self):
def last(self):
return self.data[-1]

@property
def last_role(self):
return self.last[0]

@property
def last_value(self):
return self.last[1]

def __repr__(self):
content = []
for ty, val in self.data:
Expand Down

0 comments on commit 7adbc81

Please sign in to comment.