Skip to content

Commit

Permalink
fix enum.Flag empty check
Browse files Browse the repository at this point in the history
  • Loading branch information
b10902118 committed Jan 26, 2025
1 parent ed10244 commit bca5b62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,13 +678,13 @@ def __init__(self, **kwargs: Any) -> None:
return

def is_readable(self) -> bool:
return (self.permission & Permission.READ) != 0
return bool(self.permission & Permission.READ)

def is_writable(self) -> bool:
return (self.permission & Permission.WRITE) != 0
return bool(self.permission & Permission.WRITE)

def is_executable(self) -> bool:
return (self.permission & Permission.EXECUTE) != 0
return bool(self.permission & Permission.EXECUTE)

@property
def size(self) -> int:
Expand Down

0 comments on commit bca5b62

Please sign in to comment.