diff --git a/README.md b/README.md index 6646da7..ba364fb 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ class Desc(IntFlag): FUNKY = 1 << 2 LARGE = 1 << 3 -marble = Bitmask(Desc, Desc.SMALL, Desc.ROUND, Desc.FUNKY) +marble = Bitmask(Desc.SMALL, Desc.ROUND, Desc.FUNKY) Desc.SMALL in marble >>> True @@ -40,6 +40,6 @@ Desc.SMALL in marble Desc.LARGE in marble >>> False -Bitmask(Desc, Desc.SMALL, Desc.ROUND) in marble +Bitmask(Desc.SMALL, Desc.ROUND) in marble >>> True ``` diff --git a/bitmask/bitmask.py b/bitmask/bitmask.py index abdeb07..f0b9637 100644 --- a/bitmask/bitmask.py +++ b/bitmask/bitmask.py @@ -24,7 +24,7 @@ class Bitmask: ROUND = 1 << 1 FUNKY = 1 << 2 - bmask = Bitmask(Desc, Desc.BIG, Desc.FUNKY) + bmask = Bitmask(Desc.BIG, Desc.FUNKY) Determine if a flag enabled::