Skip to content

Commit

Permalink
remove Variable.__index__ to avoid error in os.stat
Browse files Browse the repository at this point in the history
Signed-off-by: Zhiyuan Chen <[email protected]>
  • Loading branch information
ZhiyuanChen committed Oct 19, 2023
1 parent 8c7b57d commit 4996673
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chanfig/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,8 @@ def __ge__(self, other) -> bool:
def __gt__(self, other) -> bool:
return self.value > self._get_value(other)

def __index__(self):
return self.value.__index__()
# def __index__(self):
# return self.value.__index__()

def __invert__(self):
return ~self.value
Expand Down

0 comments on commit 4996673

Please sign in to comment.