Add utils.MISSING

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

No files matched your search

+11
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