Browse Source

Remove direct discord.utils.MISSING references (#290)

Co-authored-by: dolfies <[email protected]>
pull/10109/head
TripleM 3 years ago
committed by GitHub
parent
commit
aa69701161
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      discord/ext/commands/cog.py
  2. 3
      discord/ext/commands/context.py
  3. 3
      discord/ext/commands/help.py

5
discord/ext/commands/cog.py

@ -24,8 +24,7 @@ DEALINGS IN THE SOFTWARE.
from __future__ import annotations
import inspect
import discord
from discord.utils import maybe_coroutine
from discord.utils import maybe_coroutine, MISSING
from typing import Any, Callable, Dict, Generator, List, Optional, TYPE_CHECKING, Tuple, TypeVar
@ -45,8 +44,6 @@ __all__ = (
FuncT = TypeVar('FuncT', bound=Callable[..., Any])
MISSING: Any = discord.utils.MISSING
class CogMeta(type):
"""A metaclass for defining a cog.

3
discord/ext/commands/context.py

@ -28,6 +28,7 @@ from typing import TYPE_CHECKING, Any, AsyncIterator, Dict, Generic, List, Optio
import discord.abc
import discord.utils
from discord.utils import MISSING
from discord.message import Message
from ._types import BotT
@ -54,8 +55,6 @@ __all__ = (
)
# fmt: on
MISSING: Any = discord.utils.MISSING
T = TypeVar('T')
CogT = TypeVar('CogT', bound="Cog")

3
discord/ext/commands/help.py

@ -45,6 +45,7 @@ from typing import (
)
import discord.utils
from discord.utils import MISSING
from .core import Group, Command, get_signature_parameters
from .errors import CommandError
@ -75,8 +76,6 @@ __all__ = (
FuncT = TypeVar('FuncT', bound=Callable[..., Any])
MISSING: Any = discord.utils.MISSING
# help -> shows info of bot on top/bottom and lists subcommands
# help command -> shows detailed info of command
# help command <subcommand chain> -> same as above

Loading…
Cancel
Save