diff --git a/disnake/ext/commands/params.py b/disnake/ext/commands/params.py index 59e2c854a1..e2db7bf513 100644 --- a/disnake/ext/commands/params.py +++ b/disnake/ext/commands/params.py @@ -477,8 +477,8 @@ class ParamInfo: .. versionadded:: 2.6 """ + # fmt: off TYPES: ClassVar[Dict[type, int]] = { - # fmt: off str: OptionType.string.value, int: OptionType.integer.value, bool: OptionType.boolean.value, @@ -495,8 +495,8 @@ class ParamInfo: Union[disnake.User, disnake.Member, disnake.Role]: OptionType.mentionable.value, float: OptionType.number.value, disnake.Attachment: OptionType.attachment.value, - # fmt: on } + # fmt: on _registered_converters: ClassVar[Dict[type, Callable]] = {} def __init__( diff --git a/disnake/types/activity.py b/disnake/types/activity.py index 8e39215d51..39a292f46a 100644 --- a/disnake/types/activity.py +++ b/disnake/types/activity.py @@ -70,9 +70,8 @@ class SendableActivity(TypedDict): class Activity(SendableActivity, total=False): - created_at: ( - int # required according to docs, but we treat it as optional for easier serialization - ) + # `created_at` is required according to docs, but we treat it as optional for easier serialization + created_at: int timestamps: ActivityTimestamps application_id: Snowflake details: Optional[str]