Skip to content

Commit

Permalink
fix: Add extra discard for arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlin7 committed Jan 28, 2024
1 parent b7302d5 commit 80a49d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biscuit/core/components/utils/fixedstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __iter__(self):

@property
def list(self):
return [(i, lambda j=i: self.base.open(j)) for i in self.stack[::-1]]
return [(i, lambda _, i=i: self.base.open(i)) for i in self.stack[::-1]]

def push(self, item):
if len(self.stack) == self.capacity:
Expand Down

0 comments on commit 80a49d7

Please sign in to comment.