From aa18e573c3b12950bc573e29217d8c47cdd71902 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 14 Mar 2022 05:45:58 -0400 Subject: [PATCH] Mark MISSING as hashable to allow it to be used in dataclasses in 3.11 --- discord/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discord/utils.py b/discord/utils.py index 6bd879fd0..3b71b4051 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -100,6 +100,9 @@ class _MissingSentinel: def __bool__(self): return False + def __hash__(self): + return 0 + def __repr__(self): return '...'