From 29c26bc0a6c7e2ed5ec8641e3304b9e5db4b90e2 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 23 Feb 2022 17:38:52 -0500 Subject: [PATCH] [types] Fix application command choice typings --- discord/types/command.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/discord/types/command.py b/discord/types/command.py index 04207aa55..412a8f126 100644 --- a/discord/types/command.py +++ b/discord/types/command.py @@ -26,8 +26,8 @@ from __future__ import annotations from typing import List, Literal, TypedDict, Union -from discord.types.channel import ChannelType -from discord.types.snowflake import Snowflake +from .channel import ChannelType +from .snowflake import Snowflake ApplicationCommandType = Literal[1, 2, 3] ApplicationCommandOptionType = Literal[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] @@ -52,7 +52,7 @@ class _BaseValueApplicationCommandOption(_BaseApplicationCommandOption, total=Fa required: bool -class _StringApplicationCommandOptionChoice(TypedDict, total=False): +class _StringApplicationCommandOptionChoice(TypedDict): name: str value: str @@ -66,7 +66,7 @@ class _StringApplicationCommandOption(_StringApplicationCommandOptionOptional): type: Literal[3] -class _IntegerApplicationCommandOptionChoice(TypedDict, total=False): +class _IntegerApplicationCommandOptionChoice(TypedDict): name: str value: int @@ -104,7 +104,7 @@ _SnowflakeApplicationCommandOptionChoice = Union[ ] -class _NumberApplicationCommandOptionChoice(TypedDict, total=False): +class _NumberApplicationCommandOptionChoice(TypedDict): name: str value: float