@@ -457,7 +457,7 @@ async def webhooks(self) -> list[Webhook]:
457457 You don't have permissions to get the webhooks.
458458 """
459459
460- from .webhook import Webhook
460+ from .webhook import Webhook # noqa: PLC0415
461461
462462 data = await self ._state .http .channel_webhooks (self .id )
463463 return [Webhook .from_state (d , state = self ._state ) for d in data ]
@@ -495,7 +495,7 @@ async def create_webhook(self, *, name: str, avatar: bytes | None = None, reason
495495 You do not have permissions to create a webhook.
496496 """
497497
498- from .webhook import Webhook
498+ from .webhook import Webhook # noqa: PLC0415
499499
500500 if avatar is not None :
501501 avatar = utils ._bytes_to_base64_data (avatar ) # type: ignore
@@ -544,7 +544,7 @@ async def follow(self, *, destination: TextChannel, reason: str | None = None) -
544544 if not isinstance (destination , TextChannel ):
545545 raise InvalidArgument (f"Expected TextChannel received { destination .__class__ .__name__ } " )
546546
547- from .webhook import Webhook
547+ from .webhook import Webhook # noqa: PLC0415
548548
549549 data = await self ._state .http .follow_webhook (self .id , webhook_channel_id = destination .id , reason = reason )
550550 return Webhook ._as_follower (data , channel = destination , user = self ._state .user )
@@ -568,7 +568,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
568568 The partial message.
569569 """
570570
571- from .message import PartialMessage
571+ from .message import PartialMessage # noqa: PLC0415
572572
573573 return PartialMessage (channel = self , id = message_id )
574574
@@ -1740,7 +1740,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
17401740 The partial message.
17411741 """
17421742
1743- from .message import PartialMessage
1743+ from .message import PartialMessage # noqa: PLC0415
17441744
17451745 return PartialMessage (channel = self , id = message_id )
17461746
@@ -1895,7 +1895,7 @@ async def webhooks(self) -> list[Webhook]:
18951895 You don't have permissions to get the webhooks.
18961896 """
18971897
1898- from .webhook import Webhook
1898+ from .webhook import Webhook # noqa: PLC0415
18991899
19001900 data = await self ._state .http .channel_webhooks (self .id )
19011901 return [Webhook .from_state (d , state = self ._state ) for d in data ]
@@ -1933,7 +1933,7 @@ async def create_webhook(self, *, name: str, avatar: bytes | None = None, reason
19331933 You do not have permissions to create a webhook.
19341934 """
19351935
1936- from .webhook import Webhook
1936+ from .webhook import Webhook # noqa: PLC0415
19371937
19381938 if avatar is not None :
19391939 avatar = utils ._bytes_to_base64_data (avatar ) # type: ignore
@@ -2267,7 +2267,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
22672267 The partial message.
22682268 """
22692269
2270- from .message import PartialMessage
2270+ from .message import PartialMessage # noqa: PLC0415
22712271
22722272 return PartialMessage (channel = self , id = message_id )
22732273
@@ -2422,7 +2422,7 @@ async def webhooks(self) -> list[Webhook]:
24222422 You don't have permissions to get the webhooks.
24232423 """
24242424
2425- from .webhook import Webhook
2425+ from .webhook import Webhook # noqa: PLC0415
24262426
24272427 data = await self ._state .http .channel_webhooks (self .id )
24282428 return [Webhook .from_state (d , state = self ._state ) for d in data ]
@@ -2460,7 +2460,7 @@ async def create_webhook(self, *, name: str, avatar: bytes | None = None, reason
24602460 You do not have permissions to create a webhook.
24612461 """
24622462
2463- from .webhook import Webhook
2463+ from .webhook import Webhook # noqa: PLC0415
24642464
24652465 if avatar is not None :
24662466 avatar = utils ._bytes_to_base64_data (avatar ) # type: ignore
@@ -3051,7 +3051,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
30513051 The partial message.
30523052 """
30533053
3054- from .message import PartialMessage
3054+ from .message import PartialMessage # noqa: PLC0415
30553055
30563056 return PartialMessage (channel = self , id = message_id )
30573057
@@ -3274,7 +3274,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
32743274 The partial message.
32753275 """
32763276
3277- from .message import PartialMessage
3277+ from .message import PartialMessage # noqa: PLC0415
32783278
32793279 return PartialMessage (channel = self , id = message_id )
32803280
0 commit comments