diff options
| author | Rapptz <[email protected]> | 2021-06-28 21:50:08 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-28 23:36:20 -0400 |
| commit | f7d551953bdfb34f25df718b065714945047ebb4 (patch) | |
| tree | 909f7f4fffeb37e030c70cc23e4d9d5c1a1f00f8 | |
| parent | Set Message.guild from guild_id if unavailable through Message.channel (diff) | |
| download | discord.py-f7d551953bdfb34f25df718b065714945047ebb4.tar.xz discord.py-f7d551953bdfb34f25df718b065714945047ebb4.zip | |
Remove extraneous __slots__ assignments
| -rw-r--r-- | discord/team.py | 2 | ||||
| -rw-r--r-- | discord/user.py | 4 | ||||
| -rw-r--r-- | discord/webhook/async_.py | 2 | ||||
| -rw-r--r-- | discord/webhook/sync.py | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/discord/team.py b/discord/team.py index b7b68204..538aaba1 100644 --- a/discord/team.py +++ b/discord/team.py @@ -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 diff --git a/discord/user.py b/discord/user.py index 09e8e43a..cd0cf422 100644 --- a/discord/user.py +++ b/discord/user.py @@ -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}>' diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py index b3450e7f..c5e93408 100644 --- a/discord/webhook/async_.py +++ b/discord/webhook/async_.py @@ -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) diff --git a/discord/webhook/sync.py b/discord/webhook/sync.py index 2d1557f5..021c0ef9 100644 --- a/discord/webhook/sync.py +++ b/discord/webhook/sync.py @@ -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) |