Browse Source

Mark MISSING as hashable to allow it to be used in dataclasses in 3.11

pull/7686/head
Rapptz 3 years ago
parent
commit
aa18e573c3
  1. 3
      discord/utils.py

3
discord/utils.py

@ -100,6 +100,9 @@ class _MissingSentinel:
def __bool__(self):
return False
def __hash__(self):
return 0
def __repr__(self):
return '...'

Loading…
Cancel
Save