[lint] Fix types used for __slots__ and __all__
Stay consistent with the rest of the library and use lists for module __all__ values and tuples for class __slots__ attributes.
This commit is contained in:
parent
d20772c680
commit
c557ee33ca
@ -28,7 +28,7 @@ from .enums import ActivityType, try_enum
|
|||||||
from .colour import Colour
|
from .colour import Colour
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
__all__ = ('Activity', 'Streaming', 'Game', 'Spotify')
|
__all__ = ['Activity', 'Streaming', 'Game', 'Spotify']
|
||||||
|
|
||||||
"""If curious, this is the current schema for an activity.
|
"""If curious, this is the current schema for an activity.
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ import discord.abc
|
|||||||
import time
|
import time
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
__all__ = ('TextChannel', 'VoiceChannel', 'DMChannel', 'CategoryChannel', 'GroupChannel', '_channel_factory')
|
__all__ = ['TextChannel', 'VoiceChannel', 'DMChannel', 'CategoryChannel', 'GroupChannel', '_channel_factory']
|
||||||
|
|
||||||
async def _single_delete_strategy(messages):
|
async def _single_delete_strategy(messages):
|
||||||
for m in messages:
|
for m in messages:
|
||||||
|
@ -466,7 +466,7 @@ class User(BaseUser, discord.abc.Messageable):
|
|||||||
Specifies if the user is a bot account.
|
Specifies if the user is a bot account.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__slots__ = ('__weakref__')
|
__slots__ = ('__weakref__',)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '<User id={0.id} name={0.name!r} discriminator={0.discriminator!r} bot={0.bot}>'.format(self)
|
return '<User id={0.id} name={0.name!r} discriminator={0.discriminator!r} bot={0.bot}>'.format(self)
|
||||||
|
@ -34,7 +34,7 @@ from . import utils
|
|||||||
from .errors import InvalidArgument, HTTPException, Forbidden, NotFound
|
from .errors import InvalidArgument, HTTPException, Forbidden, NotFound
|
||||||
from .user import BaseUser, User
|
from .user import BaseUser, User
|
||||||
|
|
||||||
__all__ = ('WebhookAdapter', 'AsyncWebhookAdapter', 'RequestsWebhookAdapter', 'Webhook')
|
__all__ = ['WebhookAdapter', 'AsyncWebhookAdapter', 'RequestsWebhookAdapter', 'Webhook']
|
||||||
|
|
||||||
class WebhookAdapter:
|
class WebhookAdapter:
|
||||||
"""Base class for all webhook adapters.
|
"""Base class for all webhook adapters.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user