116116
117117 PartialMessageableChannel = Union [TextChannel , VoiceChannel , StageChannel , Thread , DMChannel , PartialMessageable ]
118118 MessageableChannel = Union [PartialMessageableChannel , GroupChannel ]
119- SnowflakeTime = Union [" Snowflake" , datetime ]
119+ SnowflakeTime = Union [' Snowflake' , datetime ]
120120
121121 class PinnedMessage (Message ):
122122 pinned_at : datetime
@@ -140,7 +140,7 @@ def __init__(self, iterator: AsyncIterator[PinnedMessage]) -> None:
140140
141141 def __await__ (self ) -> Generator [Any , None , List [PinnedMessage ]]:
142142 warnings .warn (
143- " `await <channel>.pins()` is deprecated; use `async for message in <channel>.pins()` instead." ,
143+ ' `await <channel>.pins()` is deprecated; use `async for message in <channel>.pins()` instead.' ,
144144 DeprecationWarning ,
145145 stacklevel = 2 ,
146146 )
@@ -423,8 +423,7 @@ class GuildChannel:
423423
424424 if TYPE_CHECKING :
425425
426- def __init__ (self , * , state : ConnectionState , guild : Guild , data : GuildChannelPayload ):
427- ...
426+ def __init__ (self , * , state : ConnectionState , guild : Guild , data : GuildChannelPayload ): ...
428427
429428 def __str__ (self ) -> str :
430429 return self .name
@@ -794,7 +793,6 @@ def permissions_for(self, obj: Union[Member, Role], /) -> Permissions:
794793
795794 default = self .guild .default_role
796795 if default is None :
797-
798796 if self ._state .self_id == obj .id :
799797 return Permissions ._user_installed_permissions (in_guild = True )
800798 else :
@@ -907,8 +905,7 @@ async def set_permissions(
907905 * ,
908906 overwrite : Optional [Union [PermissionOverwrite , _Undefined ]] = ...,
909907 reason : Optional [str ] = ...,
910- ) -> None :
911- ...
908+ ) -> None : ...
912909
913910 @overload
914911 async def set_permissions (
@@ -917,8 +914,7 @@ async def set_permissions(
917914 * ,
918915 reason : Optional [str ] = ...,
919916 ** permissions : Unpack [_PermissionOverwriteKwargs ],
920- ) -> None :
921- ...
917+ ) -> None : ...
922918
923919 async def set_permissions (
924920 self ,
@@ -1109,8 +1105,7 @@ async def move(
11091105 category : Optional [Snowflake ] = MISSING ,
11101106 sync_permissions : bool = MISSING ,
11111107 reason : Optional [str ] = MISSING ,
1112- ) -> None :
1113- ...
1108+ ) -> None : ...
11141109
11151110 @overload
11161111 async def move (
@@ -1121,8 +1116,7 @@ async def move(
11211116 category : Optional [Snowflake ] = MISSING ,
11221117 sync_permissions : bool = MISSING ,
11231118 reason : str = MISSING ,
1124- ) -> None :
1125- ...
1119+ ) -> None : ...
11261120
11271121 @overload
11281122 async def move (
@@ -1133,8 +1127,7 @@ async def move(
11331127 category : Optional [Snowflake ] = MISSING ,
11341128 sync_permissions : bool = MISSING ,
11351129 reason : str = MISSING ,
1136- ) -> None :
1137- ...
1130+ ) -> None : ...
11381131
11391132 @overload
11401133 async def move (
@@ -1145,8 +1138,7 @@ async def move(
11451138 category : Optional [Snowflake ] = MISSING ,
11461139 sync_permissions : bool = MISSING ,
11471140 reason : str = MISSING ,
1148- ) -> None :
1149- ...
1141+ ) -> None : ...
11501142
11511143 async def move (self , ** kwargs : Any ) -> None :
11521144 """|coro|
@@ -1428,8 +1420,7 @@ async def send(
14281420 view : LayoutView ,
14291421 suppress_embeds : bool = ...,
14301422 silent : bool = ...,
1431- ) -> Message :
1432- ...
1423+ ) -> Message : ...
14331424
14341425 @overload
14351426 async def send (
@@ -1444,8 +1435,7 @@ async def send(
14441435 view : LayoutView ,
14451436 suppress_embeds : bool = ...,
14461437 silent : bool = ...,
1447- ) -> Message :
1448- ...
1438+ ) -> Message : ...
14491439
14501440 @overload
14511441 async def send (
@@ -1465,8 +1455,7 @@ async def send(
14651455 suppress_embeds : bool = ...,
14661456 silent : bool = ...,
14671457 poll : Poll = ...,
1468- ) -> Message :
1469- ...
1458+ ) -> Message : ...
14701459
14711460 @overload
14721461 async def send (
@@ -1486,8 +1475,7 @@ async def send(
14861475 suppress_embeds : bool = ...,
14871476 silent : bool = ...,
14881477 poll : Poll = ...,
1489- ) -> Message :
1490- ...
1478+ ) -> Message : ...
14911479
14921480 @overload
14931481 async def send (
@@ -1507,8 +1495,7 @@ async def send(
15071495 suppress_embeds : bool = ...,
15081496 silent : bool = ...,
15091497 poll : Poll = ...,
1510- ) -> Message :
1511- ...
1498+ ) -> Message : ...
15121499
15131500 @overload
15141501 async def send (
@@ -1528,8 +1515,7 @@ async def send(
15281515 suppress_embeds : bool = ...,
15291516 silent : bool = ...,
15301517 poll : Poll = ...,
1531- ) -> Message :
1532- ...
1518+ ) -> Message : ...
15331519
15341520 async def send (
15351521 self ,
@@ -2029,7 +2015,7 @@ async def _before_strategy(retrieve: int, before: Optional[Snowflake], limit: Op
20292015 if limit is None :
20302016 raise ValueError ('history does not support around with limit=None' )
20312017 if limit > 101 :
2032- raise ValueError (" history max limit 101 when specifying around parameter" )
2018+ raise ValueError (' history max limit 101 when specifying around parameter' )
20332019
20342020 # Strange Discord quirk
20352021 limit = 100 if limit == 101 else limit
0 commit comments