Add utils.MISSING

This commit is contained in:
Nadir Chowdhury
2021-04-29 06:58:36 +01:00
committed by GitHub
parent a2df6e81b8
commit c786a85a9b
5 changed files with 20 additions and 24 deletions

View File

@ -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