mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-03 08:35:53 +00:00
Add utils.MISSING
This commit is contained in:
@ -36,7 +36,7 @@ from discord.utils import resolve_annotation
|
||||
from .view import StringView
|
||||
from .converter import run_converters
|
||||
|
||||
from discord.utils import maybe_coroutine
|
||||
from discord.utils import maybe_coroutine, MISSING
|
||||
from dataclasses import dataclass, field
|
||||
from typing import (
|
||||
Dict,
|
||||
@ -69,14 +69,6 @@ if TYPE_CHECKING:
|
||||
from .context import Context
|
||||
|
||||
|
||||
class _MissingSentinel:
|
||||
def __repr__(self):
|
||||
return 'MISSING'
|
||||
|
||||
|
||||
MISSING: Any = _MissingSentinel()
|
||||
|
||||
|
||||
@dataclass
|
||||
class Flag:
|
||||
"""Represents a flag parameter for :class:`FlagConverter`.
|
||||
|
Reference in New Issue
Block a user