mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +00:00
Remove extraneous __slots__ assignments
This commit is contained in:
parent
6b1d46a1ea
commit
f7d551953b
@ -130,7 +130,7 @@ class TeamMember(BaseUser):
|
||||
The membership state of the member (e.g. invited or accepted)
|
||||
"""
|
||||
|
||||
__slots__ = BaseUser.__slots__ + ('team', 'membership_state', 'permissions')
|
||||
__slots__ = ('team', 'membership_state', 'permissions')
|
||||
|
||||
def __init__(self, team: Team, state: ConnectionState, data: TeamMemberPayload):
|
||||
self.team: Team = team
|
||||
|
@ -228,7 +228,7 @@ class ClientUser(BaseUser):
|
||||
Specifies if the user has MFA turned on and working.
|
||||
"""
|
||||
|
||||
__slots__ = BaseUser.__slots__ + ('locale', '_flags', 'verified', 'mfa_enabled', '__weakref__')
|
||||
__slots__ = ('locale', '_flags', 'verified', 'mfa_enabled', '__weakref__')
|
||||
|
||||
def __init__(self, *, state, data):
|
||||
super().__init__(state=state, data=data)
|
||||
@ -319,7 +319,7 @@ class User(BaseUser, discord.abc.Messageable):
|
||||
Specifies if the user is a system user (i.e. represents Discord officially).
|
||||
"""
|
||||
|
||||
__slots__ = BaseUser.__slots__ + ('__weakref__',)
|
||||
__slots__ = ('__weakref__',)
|
||||
|
||||
def __repr__(self):
|
||||
return f'<User id={self.id} name={self.name!r} discriminator={self.discriminator!r} bot={self.bot}>'
|
||||
|
@ -906,7 +906,7 @@ class Webhook(BaseWebhook):
|
||||
.. versionadded:: 2.0
|
||||
"""
|
||||
|
||||
__slots__: Tuple[str, ...] = BaseWebhook.__slots__ + ('session',)
|
||||
__slots__: Tuple[str, ...] = ('session',)
|
||||
|
||||
def __init__(self, data: WebhookPayload, session: aiohttp.ClientSession, token: Optional[str] = None, state=None):
|
||||
super().__init__(data, token, state)
|
||||
|
@ -494,7 +494,7 @@ class SyncWebhook(BaseWebhook):
|
||||
.. versionadded:: 2.0
|
||||
"""
|
||||
|
||||
__slots__: Tuple[str, ...] = BaseWebhook.__slots__ + ('session',)
|
||||
__slots__: Tuple[str, ...] = ('session',)
|
||||
|
||||
def __init__(self, data: WebhookPayload, session: Session, token: Optional[str] = None, state=None):
|
||||
super().__init__(data, token, state)
|
||||
|
Loading…
x
Reference in New Issue
Block a user