From 5556a604ab9211b72aec2d8b99b8169f47b01380 Mon Sep 17 00:00:00 2001 From: Amrou Bellalouna Date: Thu, 20 Oct 2022 09:06:30 +0100 Subject: remove int from search_value's type union --- bot/exts/utils/utils.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py index 34ac8276d..9fe3b46e4 100644 --- a/bot/exts/utils/utils.py +++ b/bot/exts/utils/utils.py @@ -1,7 +1,7 @@ import difflib import re import unicodedata -from typing import Tuple, Union +from typing import Tuple from discord import Colour, Embed, utils from discord.ext.commands import BadArgument, Cog, Context, clean_content, command, has_any_role @@ -87,11 +87,11 @@ class Utils(Cog): @command() async def zen( - self, - ctx: Context, - zen_rule_index: int | None, - *, - search_value: Union[int, str, None] = None + self, + ctx: Context, + zen_rule_index: int | None, + *, + search_value: str | None = None ) -> None: """ Show the Zen of Python. -- cgit v1.2.3