mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Add return type for __init__
This commit is contained in:
parent
277d35c9b2
commit
89eb86ecdc
@ -300,7 +300,7 @@ class _Overwrites:
|
|||||||
ROLE = 0
|
ROLE = 0
|
||||||
MEMBER = 1
|
MEMBER = 1
|
||||||
|
|
||||||
def __init__(self, data: PermissionOverwritePayload):
|
def __init__(self, data: PermissionOverwritePayload) -> None:
|
||||||
self.id: int = int(data['id'])
|
self.id: int = int(data['id'])
|
||||||
self.allow: int = int(data.get('allow', 0))
|
self.allow: int = int(data.get('allow', 0))
|
||||||
self.deny: int = int(data.get('deny', 0))
|
self.deny: int = int(data.get('deny', 0))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user