From 94ba8ba272231a88a3eff52f688eedf8347ce223 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Wed, 3 Aug 2022 17:16:13 -0400 Subject: [PATCH] bitmask.py: fix failed unit tests --- bitmask/bitmask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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