mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-21 16:03:10 +00:00
Typehint permissions
This commit is contained in:
@@ -42,6 +42,8 @@ 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__
|
||||
@@ -67,7 +69,7 @@ class flag_value(Generic[BF]):
|
||||
|
||||
|
||||
class alias_flag_value(flag_value):
|
||||
pass
|
||||
__slots__ = ()
|
||||
|
||||
|
||||
def fill_with_flags(*, inverted: bool = False):
|
||||
|
Reference in New Issue
Block a user