diff --git a/bitmask/bitmask.py b/bitmask/bitmask.py index 018bae3..ae55d20 100644 --- a/bitmask/bitmask.py +++ b/bitmask/bitmask.py @@ -62,7 +62,7 @@ class Bitmask: @AllFlags.setter def AllFlags(self, value): - if not issubclass(type(self.AllFlags), EnumMeta): + if not issubclass(type(value), EnumMeta): raise TypeError("flags aren't Enum values") # Allow setting only once