From 8aafa8b7f2898a69564cc4140dfa7aecf2e56f64 Mon Sep 17 00:00:00 2001 From: Zomatree Date: Wed, 5 Jan 2022 18:36:32 +0000 Subject: [PATCH] fix for 3.9 --- revolt/ext/commands/command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/revolt/ext/commands/command.py b/revolt/ext/commands/command.py index 9139836..138e0d5 100755 --- a/revolt/ext/commands/command.py +++ b/revolt/ext/commands/command.py @@ -3,7 +3,6 @@ import inspect import traceback from contextlib import suppress -from types import NoneType from typing import (TYPE_CHECKING, Annotated, Any, Callable, Coroutine, Literal, Optional, Union, get_args, get_origin, cast) @@ -21,6 +20,9 @@ "command" ) +NoneType = type(None) + + class Command: """Class for holding info about a command.