Skip to content

Commit

Permalink
Typing
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Aug 31, 2023
1 parent 217bd0b commit 334f2c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/lvmecp/maskbits.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ class Maskbit(enum.Flag):
__unknown__ = 0x100000

def __str__(self):
enabled = [bit.name for bit in self.__class__ if bit.value & self.value]
enabled = [
bit.name
for bit in self.__class__
if bit.value & self.value and bit.name is not None
]
return ",".join(enabled)

@property
Expand Down

0 comments on commit 334f2c9

Please sign in to comment.