mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +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):
|
||||
return False
|
||||
|
||||
def __hash__(self):
|
||||
return 0
|
||||
|
||||
def __repr__(self):
|
||||
return '...'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user