File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -121,14 +121,14 @@ async def _search(
121121 if channel in results :
122122 continue
123123 if channel == source :
124- reasons [
125- channel . mention
126- ] = "Rifts cannot be opened to the same channel as their source."
124+ reasons [channel . mention ] = (
125+ "Rifts cannot be opened to the same channel as their source."
126+ )
127127 continue
128128 if getattr (channel , "nsfw" , False ) != is_nsfw :
129- reasons [
130- channel . mention
131- ] = f"Channel { 'is not' if is_nsfw else 'is' } nsfw, while this channel { 'is' if is_nsfw else 'is not' } ."
129+ reasons [channel . mention ] = (
130+ f"Channel { 'is not' if is_nsfw else 'is' } nsfw, while this channel { 'is' if is_nsfw else 'is not' } ."
131+ )
132132 continue
133133 if blacklists [1 ].get (channel .id , {}).get ("blacklisted" ):
134134 reasons [channel .mention ] = "Channel is blocked from receiving rifts."
Original file line number Diff line number Diff line change 4141
4242 _H = TypeVar ("_H" , bound = Hashable )
4343
44- def deduplicate_iterables (* iterables : Iterable [_H ]) -> List [_H ]: # noqa: F811
45- ...
44+ def deduplicate_iterables (* iterables : Iterable [_H ]) -> List [_H ]: ...
4645
4746else :
4847 from .converter import DiscordConverter as Messageable
@@ -57,13 +56,11 @@ def deduplicate_iterables(*iterables: Iterable[_H]) -> List[_H]: # noqa: F811
5756
5857
5958@overload
60- async def can_close (ctx : commands .Context ) -> bool :
61- ...
59+ async def can_close (ctx : commands .Context ) -> bool : ...
6260
6361
6462@overload
65- async def can_close (ctx : discord .Message , bot : Red ) -> bool :
66- ...
63+ async def can_close (ctx : discord .Message , bot : Red ) -> bool : ...
6764
6865
6966async def can_close (ctx : Union [commands .Context , discord .Message ], bot : Red = None ):
@@ -772,7 +769,8 @@ async def process_kwargs(
772769 raise RiftError (_ ("Your message was filtered." ))
773770 embed : Optional [List [discord .Embed ]]
774771 if await self .bot .embed_requested (
775- getattr (channel , "recipient" , channel ), command = self .rift # type: ignore
772+ getattr (channel , "recipient" , channel ),
773+ command = self .rift , # type: ignore
776774 ):
777775 embed = [
778776 discord .Embed (
You can’t perform that action at this time.
0 commit comments