mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Reformat entire project with ruff instead of black
This commit is contained in:
@ -1265,14 +1265,12 @@ class ConnectionState(Generic[ClientT]):
|
||||
return guild.id not in self._guilds
|
||||
|
||||
@overload
|
||||
async def chunk_guild(self, guild: Guild, *, wait: Literal[True] = ..., cache: Optional[bool] = ...) -> List[Member]:
|
||||
...
|
||||
async def chunk_guild(self, guild: Guild, *, wait: Literal[True] = ..., cache: Optional[bool] = ...) -> List[Member]: ...
|
||||
|
||||
@overload
|
||||
async def chunk_guild(
|
||||
self, guild: Guild, *, wait: Literal[False] = ..., cache: Optional[bool] = ...
|
||||
) -> asyncio.Future[List[Member]]:
|
||||
...
|
||||
) -> asyncio.Future[List[Member]]: ...
|
||||
|
||||
async def chunk_guild(
|
||||
self, guild: Guild, *, wait: bool = True, cache: Optional[bool] = None
|
||||
@ -1803,7 +1801,10 @@ class ConnectionState(Generic[ClientT]):
|
||||
return self._emojis[emoji_id]
|
||||
except KeyError:
|
||||
return PartialEmoji.with_state(
|
||||
self, animated=data.get('animated', False), id=emoji_id, name=data['name'] # type: ignore
|
||||
self,
|
||||
animated=data.get('animated', False),
|
||||
id=emoji_id,
|
||||
name=data['name'], # type: ignore
|
||||
)
|
||||
|
||||
def _upgrade_partial_emoji(self, emoji: PartialEmoji) -> Union[Emoji, PartialEmoji, str]:
|
||||
|
Reference in New Issue
Block a user