Remove slots from flags

Fix #7159
This commit is contained in:
Rapptz
2021-07-03 10:52:35 -04:00
parent bba4d6c4e4
commit be5603141e
2 changed files with 1 additions and 4 deletions

View File

@ -42,8 +42,6 @@ BF = TypeVar('BF', bound='BaseFlags')
class flag_value(Generic[BF]):
__slots__ = ('flag', '__doc__')
def __init__(self, func: Callable[[Any], int]):
self.flag = func(None)
self.__doc__ = func.__doc__
@ -69,7 +67,7 @@ class flag_value(Generic[BF]):
class alias_flag_value(flag_value):
__slots__ = ()
pass
def fill_with_flags(*, inverted: bool = False):