Skip to content

Commit

Permalink
fix: dreaded comments
Browse files Browse the repository at this point in the history
  • Loading branch information
elenakrittik committed May 19, 2024
1 parent 62778ff commit 165ab84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions disnake/ext/commands/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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__(
Expand Down
5 changes: 2 additions & 3 deletions disnake/types/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 165ab84

Please sign in to comment.