@@ -457,7 +457,7 @@ async def webhooks(self) -> list[Webhook]:
457
457
You don't have permissions to get the webhooks.
458
458
"""
459
459
460
- from .webhook import Webhook
460
+ from .webhook import Webhook # noqa: PLC0415
461
461
462
462
data = await self ._state .http .channel_webhooks (self .id )
463
463
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
495
495
You do not have permissions to create a webhook.
496
496
"""
497
497
498
- from .webhook import Webhook
498
+ from .webhook import Webhook # noqa: PLC0415
499
499
500
500
if avatar is not None :
501
501
avatar = utils ._bytes_to_base64_data (avatar ) # type: ignore
@@ -544,7 +544,7 @@ async def follow(self, *, destination: TextChannel, reason: str | None = None) -
544
544
if not isinstance (destination , TextChannel ):
545
545
raise InvalidArgument (f"Expected TextChannel received { destination .__class__ .__name__ } " )
546
546
547
- from .webhook import Webhook
547
+ from .webhook import Webhook # noqa: PLC0415
548
548
549
549
data = await self ._state .http .follow_webhook (self .id , webhook_channel_id = destination .id , reason = reason )
550
550
return Webhook ._as_follower (data , channel = destination , user = self ._state .user )
@@ -568,7 +568,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
568
568
The partial message.
569
569
"""
570
570
571
- from .message import PartialMessage
571
+ from .message import PartialMessage # noqa: PLC0415
572
572
573
573
return PartialMessage (channel = self , id = message_id )
574
574
@@ -1740,7 +1740,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
1740
1740
The partial message.
1741
1741
"""
1742
1742
1743
- from .message import PartialMessage
1743
+ from .message import PartialMessage # noqa: PLC0415
1744
1744
1745
1745
return PartialMessage (channel = self , id = message_id )
1746
1746
@@ -1895,7 +1895,7 @@ async def webhooks(self) -> list[Webhook]:
1895
1895
You don't have permissions to get the webhooks.
1896
1896
"""
1897
1897
1898
- from .webhook import Webhook
1898
+ from .webhook import Webhook # noqa: PLC0415
1899
1899
1900
1900
data = await self ._state .http .channel_webhooks (self .id )
1901
1901
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
1933
1933
You do not have permissions to create a webhook.
1934
1934
"""
1935
1935
1936
- from .webhook import Webhook
1936
+ from .webhook import Webhook # noqa: PLC0415
1937
1937
1938
1938
if avatar is not None :
1939
1939
avatar = utils ._bytes_to_base64_data (avatar ) # type: ignore
@@ -2267,7 +2267,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
2267
2267
The partial message.
2268
2268
"""
2269
2269
2270
- from .message import PartialMessage
2270
+ from .message import PartialMessage # noqa: PLC0415
2271
2271
2272
2272
return PartialMessage (channel = self , id = message_id )
2273
2273
@@ -2422,7 +2422,7 @@ async def webhooks(self) -> list[Webhook]:
2422
2422
You don't have permissions to get the webhooks.
2423
2423
"""
2424
2424
2425
- from .webhook import Webhook
2425
+ from .webhook import Webhook # noqa: PLC0415
2426
2426
2427
2427
data = await self ._state .http .channel_webhooks (self .id )
2428
2428
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
2460
2460
You do not have permissions to create a webhook.
2461
2461
"""
2462
2462
2463
- from .webhook import Webhook
2463
+ from .webhook import Webhook # noqa: PLC0415
2464
2464
2465
2465
if avatar is not None :
2466
2466
avatar = utils ._bytes_to_base64_data (avatar ) # type: ignore
@@ -3051,7 +3051,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
3051
3051
The partial message.
3052
3052
"""
3053
3053
3054
- from .message import PartialMessage
3054
+ from .message import PartialMessage # noqa: PLC0415
3055
3055
3056
3056
return PartialMessage (channel = self , id = message_id )
3057
3057
@@ -3274,7 +3274,7 @@ def get_partial_message(self, message_id: int, /) -> PartialMessage:
3274
3274
The partial message.
3275
3275
"""
3276
3276
3277
- from .message import PartialMessage
3277
+ from .message import PartialMessage # noqa: PLC0415
3278
3278
3279
3279
return PartialMessage (channel = self , id = message_id )
3280
3280
0 commit comments