mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-23 03:16:48 +00:00
Mark MISSING as hashable to allow it to be used in dataclasses in 3.11
This commit is contained in:
parent
abcec5da9d
commit
aa18e573c3
@ -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 '...'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user