diff options
| author | Rapptz <[email protected]> | 2021-04-30 01:04:18 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-04-30 01:05:01 -0400 |
| commit | 7b8db49efe59f2eb1e5042d0272b64d615d2c1f1 (patch) | |
| tree | f3ab3547b620c16e2ef7dea922b4541f2c29afda | |
| parent | [commands] Fix Generic subcalsses used as a converter (diff) | |
| download | discord.py-7b8db49efe59f2eb1e5042d0272b64d615d2c1f1.tar.xz discord.py-7b8db49efe59f2eb1e5042d0272b64d615d2c1f1.zip | |
Fix utils.MISSING not evaluating to True in implicit bool contexts
| -rw-r--r-- | discord/utils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/utils.py b/discord/utils.py index b2068ee5..ec4e1bba 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -83,6 +83,9 @@ class _MissingSentinel: def __eq__(self, other): return False + def __bool__(self): + return False + def __repr__(self): return '...' |