mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-12-04 22:42:21 +00:00
Mark MISSING as hashable to allow it to be used in dataclasses in 3.11
This commit is contained in:
@@ -100,6 +100,9 @@ class _MissingSentinel:
|
|||||||
def __bool__(self):
|
def __bool__(self):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def __hash__(self):
|
||||||
|
return 0
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '...'
|
return '...'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user