@@ -458,7 +458,7 @@ async def webhooks(self) -> list[Webhook]:
458458 You don't have permissions to get the webhooks.
459459 """
460460
461- from .webhook import Webhook
461+ from .webhook import Webhook # noqa: PLC0415
462462
463463 data = await self ._state .http .channel_webhooks (self .id )
464464 return [Webhook .from_state (d , state = self ._state ) for d in data ]
@@ -496,7 +496,7 @@ async def create_webhook(self, *, name: str, avatar: bytes | None = None, reason
496496 You do not have permissions to create a webhook.
497497 """
498498
499- from .webhook import Webhook
499+ from .webhook import Webhook # noqa: PLC0415
500500
501501 if avatar is not None :
502502 avatar = bytes_to_base64_data (avatar ) # type: ignore
@@ -545,7 +545,7 @@ async def follow(self, *, destination: TextChannel, reason: str | None = None) -
545545 if not isinstance (destination , TextChannel ):
546546 raise InvalidArgument (f"Expected TextChannel received { destination .__class__ .__name__ } " )
547547
548- from .webhook import Webhook
548+ from .webhook import Webhook # noqa: PLC0415
549549
550550 data = await self ._state .http .follow_webhook (self .id , webhook_channel_id = destination .id , reason = reason )
551551 return Webhook ._as_follower (data , channel = destination , user = self ._state .user )
@@ -569,7 +569,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
569569 The partial message.
570570 """
571571
572- from .message import PartialMessage
572+ from .message import PartialMessage # noqa: PLC0415
573573
574574 return PartialMessage (channel = self , id = message_id )
575575
@@ -1739,7 +1739,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
17391739 The partial message.
17401740 """
17411741
1742- from .message import PartialMessage
1742+ from .message import PartialMessage # noqa: PLC0415
17431743
17441744 return PartialMessage (channel = self , id = message_id )
17451745
@@ -1894,7 +1894,7 @@ async def webhooks(self) -> list[Webhook]:
18941894 You don't have permissions to get the webhooks.
18951895 """
18961896
1897- from .webhook import Webhook
1897+ from .webhook import Webhook # noqa: PLC0415
18981898
18991899 data = await self ._state .http .channel_webhooks (self .id )
19001900 return [Webhook .from_state (d , state = self ._state ) for d in data ]
@@ -1932,7 +1932,7 @@ async def create_webhook(self, *, name: str, avatar: bytes | None = None, reason
19321932 You do not have permissions to create a webhook.
19331933 """
19341934
1935- from .webhook import Webhook
1935+ from .webhook import Webhook # noqa: PLC0415
19361936
19371937 if avatar is not None :
19381938 avatar = bytes_to_base64_data (avatar ) # type: ignore
@@ -2266,7 +2266,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
22662266 The partial message.
22672267 """
22682268
2269- from .message import PartialMessage
2269+ from .message import PartialMessage # noqa: PLC0415
22702270
22712271 return PartialMessage (channel = self , id = message_id )
22722272
@@ -2421,7 +2421,7 @@ async def webhooks(self) -> list[Webhook]:
24212421 You don't have permissions to get the webhooks.
24222422 """
24232423
2424- from .webhook import Webhook
2424+ from .webhook import Webhook # noqa: PLC0415
24252425
24262426 data = await self ._state .http .channel_webhooks (self .id )
24272427 return [Webhook .from_state (d , state = self ._state ) for d in data ]
@@ -2459,7 +2459,7 @@ async def create_webhook(self, *, name: str, avatar: bytes | None = None, reason
24592459 You do not have permissions to create a webhook.
24602460 """
24612461
2462- from .webhook import Webhook
2462+ from .webhook import Webhook # noqa: PLC0415
24632463
24642464 if avatar is not None :
24652465 avatar = bytes_to_base64_data (avatar ) # type: ignore
@@ -3050,7 +3050,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
30503050 The partial message.
30513051 """
30523052
3053- from .message import PartialMessage
3053+ from .message import PartialMessage # noqa: PLC0415
30543054
30553055 return PartialMessage (channel = self , id = message_id )
30563056
@@ -3273,7 +3273,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
32733273 The partial message.
32743274 """
32753275
3276- from .message import PartialMessage
3276+ from .message import PartialMessage # noqa: PLC0415
32773277
32783278 return PartialMessage (channel = self , id = message_id )
32793279
0 commit comments