diff options
| author | Nadir Chowdhury <[email protected]> | 2021-04-29 06:58:36 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-29 01:58:36 -0400 |
| commit | c786a85a9b726c7f24574a89f24b16a15ab2fe47 (patch) | |
| tree | 5b1d985f366767d5cbbc25ba6526721b584f5745 /discord/utils.py | |
| parent | [commands] Update error message for Literal float/complex (diff) | |
| download | discord.py-c786a85a9b726c7f24574a89f24b16a15ab2fe47.tar.xz discord.py-c786a85a9b726c7f24574a89f24b16a15ab2fe47.zip | |
Add utils.MISSING
Diffstat (limited to 'discord/utils.py')
| -rw-r--r-- | discord/utils.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/discord/utils.py b/discord/utils.py index d78c35a9..b2068ee5 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -79,6 +79,17 @@ __all__ = ( DISCORD_EPOCH = 1420070400000 +class _MissingSentinel: + def __eq__(self, other): + return False + + def __repr__(self): + return '...' + + +MISSING: Any = _MissingSentinel() + + class _cached_property: def __init__(self, function): self.function = function |