mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[V3] supress pynacl warning (#1508)
* supress pynacl warning * move the supression to __init__.py * .. * Revert "move the supression to __init__.py" This reverts commit ee7ba9c968dd8d7038fcba856c5718d2e5bd3345. Doesn't properly work here * Changes are fine in __init__.py Needs a module level import in __main__.py or the console scripts generated by pip setup don't ever run the code in __init__ * supress pynacl warning * puts the changes back again to avoid duplicate module import warning
This commit is contained in:
parent
8756b22f5a
commit
96791bd72b
@ -12,6 +12,10 @@ from discord.ext.commands.bot import BotBase
|
||||
from discord.ext.commands import GroupMixin
|
||||
from discord.ext.commands import when_mentioned_or
|
||||
|
||||
# This supresses the PyNaCl warning that isn't relevant here
|
||||
from discord.voice_client import VoiceClient
|
||||
VoiceClient.warn_nacl = False
|
||||
|
||||
from .cog_manager import CogManager
|
||||
from . import (
|
||||
Config,
|
||||
@ -26,7 +30,6 @@ from .utils import TYPE_CHECKING
|
||||
if TYPE_CHECKING:
|
||||
from aiohttp_json_rpc import JsonRpc
|
||||
|
||||
|
||||
# noinspection PyUnresolvedReferences
|
||||
class RpcMethodMixin:
|
||||
async def rpc__cogs(self, request):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user